第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

考慮在你的配置中定義一個(gè)名為'entityManagerFactory'的bean

考慮在你的配置中定義一個(gè)名為'entityManagerFactory'的bean

冉冉說(shuō) 2021-06-08 17:01:16
我正在嘗試將spring boot 1.5.9升級(jí)到2.0.3,服務(wù)啟動(dòng)失敗,出現(xiàn)以下錯(cuò)誤:***************************APPLICATION FAILED TO START***************************Description:Method mvcConversionService in org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration required a bean named 'entityManagerFactory' that could not be found.Action:Consider defining a bean named 'entityManagerFactory' in your configuration.Process finished with exit code 1該服務(wù)在 Spring boot 1.5.9 中正常啟動(dòng)。這里是 yaml 文件:    spring:      application:      name: customer-crud-application      datasource:        url: jdbc:jtds:sqlserver://localhost:1433;databaseName=db-data-dev        username: sa        password: pwd        driverClassName: net.sourceforge.jtds.jdbc.Driver      jpa:        show-sql: true        hibernate:        dialect: org.hibernate.dialect.SQLServer2012Dialect    server:      port: 8080      max-http-header-size: 65536和 gradle.build    dependencies {        compile 'org.springframework.boot:spring-boot-starter-web'        compile versions.lombok        compile('net.sourceforge.jtds:jtds')        compile versions.spring_jdbc        compile versions.spring_boot_starter_data_jpa    }項(xiàng)目使用spring boot 2.0構(gòu)建成功,我已經(jīng)清理了c:/Users/{user}/.m2文件夾和intelliJ緩存。請(qǐng)幫忙!
查看完整描述

3 回答

?
楊魅力

TA貢獻(xiàn)1811條經(jīng)驗(yàn) 獲得超6個(gè)贊

請(qǐng)嘗試在yaml文件中進(jìn)行以下更改,


  spring:

        jpa:    

            show-sql: true

            database: MYSQL

            hibernate:

                ddl-auto: update

                dialect:

                   storage_engine: innodb

        datasource:

            url: jdbc:mysql://localhost:3306/databasename?useSSL=false

            username: user

            password: password

      

    server:

      port: 9999

快樂(lè)編碼.. :)


查看完整回答
反對(duì) 回復(fù) 2021-06-10
?
烙印99

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超13個(gè)贊

添加以下部門(mén)。


<dependency>

            <groupId>org.springframework.boot</groupId>

            <artifactId>spring-boot-starter-data-jpa</artifactId>

</dependency>


查看完整回答
反對(duì) 回復(fù) 2021-06-10
  • 3 回答
  • 0 關(guān)注
  • 574 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)