課程
/后端開發
/Java
/2小時學會Spring Boot
為什么我運行什么都沒有為題就是進行數據庫操作的時候不建表
2017-07-27
源自:2小時學會Spring Boot 5-1
正在回答
spring: ?profiles: ? ?active: test ?datasource: ? ?driver-class-name: com.mysql.jdbc.Driver ? ?url: jdbc:mysql://localhost:3306/test1 ? ?username: root ? ?password: root ?jpa: ? ?hibernate: ? ? ?ddl-auto: create ? ?show-sql: true
我的是這樣,可以生成,你們看看代碼有錯嗎
我的配置是這樣的,也沒法生成,請問你的可以了嗎?
server: ?port: 8089 ?tomcat: ? ?uri-encoding: utf-8entitymanager: ?packagesToScan: com.bean
spring: ?datasource: ? ?driver-class-name: com.mysql.jdbc.Driver ? ?url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=true ? ?username: root ? ?password: 123456 ?jpa: ? ?hibernate: ? ? ?ddl-auto: create ? ?show-sql: true ?jackson: ? ?serialization: true
你可能前面沒對應好空格
jpa:
? ? hibernate:
? ? ? ddl-auto: create
? ? show-sql: true
application設置里有這樣設置嗎
舉報
Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-08-17
spring:
?profiles:
? ?active: test
?datasource:
? ?driver-class-name: com.mysql.jdbc.Driver
? ?url: jdbc:mysql://localhost:3306/test1
? ?username: root
? ?password: root
?jpa:
? ?hibernate:
? ? ?ddl-auto: create
? ?show-sql: true
我的是這樣,可以生成,你們看看代碼有錯嗎
2017-07-31
我的配置是這樣的,也沒法生成,請問你的可以了嗎?
server:
?port: 8089
?tomcat:
? ?uri-encoding: utf-8
entitymanager:
?packagesToScan: com.bean
spring:
?datasource:
? ?driver-class-name: com.mysql.jdbc.Driver
? ?url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=true
? ?username: root
? ?password: 123456
?jpa:
? ?hibernate:
? ? ?ddl-auto: create
? ?show-sql: true
?jackson:
? ?serialization: true
2017-07-30
你可能前面沒對應好空格
2017-07-27
jpa:
? ? hibernate:
? ? ? ddl-auto: create
? ? show-sql: true
application設置里有這樣設置嗎