spring boot数据库连接配置

1、spring.datasource.url=jdbc:mysql://192.168.1.105/spring?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=true
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

spring.jpa.properties.hibernate.hbm2ddl.auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.show-sql= true
spring.thymeleaf.cache=false

 

2、

posted @ 2018-02-27 14:09  公子秦1117  阅读(454)  评论(0编辑  收藏  举报