MySQL8.0连数据库的SpringBoot的yml文件
spring:datasource:#url: jdbc:mysql://localhost:3306/xiaoyou?serverTimezone=GMT%2B8url: jdbc:mysql://localhost:3306/xiaoyou?serverTimezone=GMT%2B8&autoReconnect=false&useUnicode=true&charac
·
spring:
datasource:
# url: jdbc:mysql://localhost:3306/xiaoyou?serverTimezone=GMT%2B8
url: jdbc:mysql://localhost:3306/xiaoyou?serverTimezone=GMT%2B8&autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=true
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: 1215
driver-class-name: com.mysql.cj.jdbc.Driver
devtools:
livereload:
enabled: false
mybatis-plus:
mapper-locations: classpath:mapper/*/*Mapper.xml
type-aliases-package: com.lgy.*.entity
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
server:
port: 9200
servlet:
session:
cookie:
name: xiaoyouindex
logging:
level:
org.springframework.security: debug
#号后边的是8.0以下版本MySQL的链接url
祝您万事顺心,没事点个赞呗,关注一下也行啊,有啥要求您评论哈
更多推荐





所有评论(0)