無法生成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
2020-03-25
我的沒有springbootapplication,依賴也都加了,還是沒有生成表,啥情況啊????
2020-02-08
解決了,我把這里注釋掉,就可以了。。

2020-02-08
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)
2020-02-08
2020-02-08
按照你的圖片在pom中增加了依賴,也加上了dialect。但是還是沒有對(duì)數(shù)據(jù)庫進(jìn)行操作。
2020-02-08
1 看一下pom的相關(guān)依賴,注意scope之類的沒有寫錯(cuò)或多寫
2 新版本需要加上dialact
我發(fā)了截圖,可以參考一下