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

祝您万事顺心,没事点个赞呗,关注一下也行啊,有啥要求您评论哈

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐