server:
port: 8090
#spring整合数据源 最快的数据源
servlet:
context-path: /
spring:
datasource:
#cj:使用高版本驱动时使用cj
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/jt?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root
password: root
#如果密码以数组0开头,则用“”包裹
#SpringBoot整合MybatisPlus
mybatis-plus:
#设置别名包
type-aliases-package: com.jt.pojo
#加载映射文件:路径
mapper-locations: classpath:/mappers/*.xml
#开启驼峰映射
configuration:
map-underscore-to-camel-case: true
#打印SQL语句
logging:
level:
#指定包路径,日志输出
com.jt.mapper: debug
.yml文件配置
最新推荐文章于 2024-04-02 17:51:59 发布