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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

無法生成table,怎么回事

為啥我在數(shù)據(jù)庫中,生成不了表格。這是我的部分代碼

spring:
??datasource:
????driver-class-name:?com.mysql.cj.jdbc.Driver
????url:?jdbc:mysql://127.0.0.1:3306/luckymoney?serverTimezone=GMT
????username:?root
????password:?g
??jpa:
????hibernate:
??????ddl-auto:?create
????show-sql:?true

http://img1.sycdn.imooc.com//5e3bb9db00014ad518880573.jpg

正在回答

6 回答

我的沒有springbootapplication,依賴也都加了,還是沒有生成表,啥情況啊????

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

碼工1023

不出意外的話是配置問題,浪費(fèi)大半天時(shí)間,差點(diǎn)放棄了
2020-04-12 回復(fù) 有任何疑惑可以回復(fù)我~

解決了,我把這里注釋掉,就可以了。。
http://img1.sycdn.imooc.com//5e3e59180001ee9611420659.jpg

0 回復(fù) 有任何疑惑可以回復(fù)我~


2020-02-08 12:00:45.558? INFO 10808 --- [? ? ? ? ? ?main] c.i.luckymoney.LuckymoneyApplication? ? ?: Starting LuckymoneyApplication on v_rslv-NB2 with PID 10808 (D:\softwore\Idea\Project\luckymoney\target\classes started by v_rslv in D:\softwore\Idea\Project\luckymoney)

2020-02-08 12:00:45.561? INFO 10808 --- [? ? ? ? ? ?main] c.i.luckymoney.LuckymoneyApplication? ? ?: The following profiles are active: dev

2020-02-08 12:00:46.537? INFO 10808 --- [? ? ? ? ? ?main] o.s.b.w.embedded.tomcat.TomcatWebServer? : Tomcat initialized with port(s): 8081 (http)

2020-02-08 12:00:46.552? INFO 10808 --- [? ? ? ? ? ?main] o.apache.catalina.core.StandardService? ?: Starting service [Tomcat]

2020-02-08 12:00:46.552? INFO 10808 --- [? ? ? ? ? ?main] org.apache.catalina.core.StandardEngine? : Starting Servlet engine: [Apache Tomcat/9.0.16]

2020-02-08 12:00:46.556? INFO 10808 --- [? ? ? ? ? ?main] o.a.catalina.core.AprLifecycleListener? ?: Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.6.5].

2020-02-08 12:00:46.556? INFO 10808 --- [? ? ? ? ? ?main] o.a.catalina.core.AprLifecycleListener? ?: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

2020-02-08 12:00:46.556? INFO 10808 --- [? ? ? ? ? ?main] o.a.catalina.core.AprLifecycleListener? ?: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]

2020-02-08 12:00:46.559? INFO 10808 --- [? ? ? ? ? ?main] o.a.catalina.core.AprLifecycleListener? ?: OpenSSL successfully initialized [OpenSSL 1.1.1a? 20 Nov 2018]

2020-02-08 12:00:46.690? INFO 10808 --- [? ? ? ? ? ?main] o.a.c.c.C.[.[localhost].[/luckymoney]? ? : Initializing Spring embedded WebApplicationContext

2020-02-08 12:00:46.690? INFO 10808 --- [? ? ? ? ? ?main] o.s.web.context.ContextLoader? ? ? ? ? ? : Root WebApplicationContext: initialization completed in 1089 ms

2020-02-08 12:00:46.859? INFO 10808 --- [? ? ? ? ? ?main] o.s.s.concurrent.ThreadPoolTaskExecutor? : Initializing ExecutorService 'applicationTaskExecutor'

2020-02-08 12:00:47.012? INFO 10808 --- [? ? ? ? ? ?main] o.s.b.w.embedded.tomcat.TomcatWebServer? : Tomcat started on port(s): 8081 (http) with context path '/luckymoney'

2020-02-08 12:00:47.014? INFO 10808 --- [? ? ? ? ? ?main] c.i.luckymoney.LuckymoneyApplication? ? ?: Started LuckymoneyApplication in 1.876 seconds (JVM running for 2.768)


0 回復(fù) 有任何疑惑可以回復(fù)我~
spring:
??datasource:
????driver-class-name:?com.mysql.cj.jdbc.Driver
????url:?jdbc:mysql://127.0.0.1:3306/luckymoney?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8
????username:?root
????password:?lv
??jpa:
????hibernate:
??????ddl-auto:?create
????show-sql:?true
????properties:
??????hibernate:
????????dialect:?org.hibernate.dialect.MySQL5InnoDBDialect


0 回復(fù) 有任何疑惑可以回復(fù)我~

按照你的圖片在pom中增加了依賴,也加上了dialect。但是還是沒有對(duì)數(shù)據(jù)庫進(jìn)行操作。

???<dependencies>
????????<dependency>
????????????<groupId>org.springframework.boot</groupId>
????????????<artifactId>spring-boot-starter-web</artifactId>
????????</dependency>

????????<dependency>
????????????<groupId>org.springframework.boot</groupId>
????????????<artifactId>spring-boot-starter-test</artifactId>
????????????<scope>test</scope>
????????</dependency>

????????<dependency>
????????????<groupId>org.hibernate</groupId>
????????????<artifactId>hibernate-core</artifactId>
????????</dependency>

<!--????????<dependency>-->
<!--????????<groupId>org.springframework.boot</groupId>-->
<!--????????<artifactId>spring-boot-starter-thymeleaf</artifactId>-->
<!--????????</dependency>-->

????????<dependency>
????????????<groupId>org.springframework.boot</groupId>
????????????<artifactId>spring-boot-starter-data-jpa</artifactId>
????????</dependency>

????????<dependency>
????????????<groupId>mysql</groupId>
????????????<artifactId>mysql-connector-java</artifactId>
????????</dependency>

????????<dependency>
????????????<groupId>org.springframework.data</groupId>
????????????<artifactId>spring-data-commons</artifactId>
????????????<version>2.1.5.RELEASE</version>
????????</dependency>

????</dependencies>


0 回復(fù) 有任何疑惑可以回復(fù)我~

1 看一下pom的相關(guān)依賴,注意scope之類的沒有寫錯(cuò)或多寫

2 新版本需要加上dialact

我發(fā)了截圖,可以參考一下

http://img1.sycdn.imooc.com//5e3e277b00014a1310401264.jpg

http://img1.sycdn.imooc.com//5e3e277b00018f5415280652.jpg


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕九州8576440 提問者

修改了下,還是沒有啟動(dòng)對(duì)數(shù)據(jù)庫相關(guān)的操作。不知道咋回事
2020-02-08 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

無法生成table,怎么回事

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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