您的位置:首页 > 编程语言 > Java开发

springboot中application.yml简单连接使用

2020-07-14 06:01 465 查看
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 123456
url: jdbc:mysql://localhost:3306/mail?useUnicode=true&characterEncoding=utf8&nullCatalogMeansCurrent=true&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
mybatis:
configuration:
map-underscore-to-camel-case: true  # 数据库与实体类表字段驼峰映射
mapper-locations: classpath:mappers/*.xml   # 指定路径下扫描xml配置文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: