Java教程

springboot项目yml文件数据源配置

本文主要是介绍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

 

这篇关于springboot项目yml文件数据源配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!