#application.yml
server:
port: 8092
servlet:
context-path: /
#spring整合数据源 HK 最快的数据源
spring:
datasource:
#使用高版本驱动时,使用cj
#serverTimezone=GMT%2B8 东8区 %2B +号
#&useUnicode=true&characterEncoding=utf8 是否开启unicode编码/utf-8
#&autoReconnect=true 断线是否重连
#&allowMultiQueries=true 是否允许批量操作
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
#如果密码以数字0开头,则使用""号包裹
#password: "0123456"
password: root
#驼峰规则
#表字段:user_id, user_name
#类属性:userId, userName
#开启驼峰命名规则后,user_id与userId可以自动映射
#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
#image.properties
#开发环境
#file.localDirPath=D:/images
#file.preURLPath=http://image.jt.com
#生产环境
file.localDirPath=/usr/local/src/images
file.preURLPath=http://image.jt.com