📜  mysql spring boot配置——SQL代码示例

📅  最后修改于: 2022-03-11 15:05:05.082000             🧑  作者: Mango

代码示例1
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/db_example
spring.datasource.username=springuser
spring.datasource.password=ThePassword
spring.datasource.driver-class-name =com.mysql.jdbc.Driver
#spring.jpa.show-sql: trueCopy