springboot项目yml文件数据源配置

#数据源配置
spring:
  datasource:
    url: jdbc:mysql://ip:3306/f_user?useUnicode=true&characterEncoding=utf8
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: root
#mybatis配置
mybatis:
  mapper-locations: classpath:mapper/**/*.xml
# mybatis  日志sql信息输出
logging:
  level:
    com.bat.grant.dao: debug

 

posted @ 2022-02-09 23:15  白玉神驹  阅读(1133)  评论(0)    收藏  举报