server:
port: 8091
servlet:
context-path: /
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/jtdb?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root
password: root
mvc:
view:
prefix: /WEB-INF/views/
suffix: .jsp
#编辑Mybatis配置
mybatis-plus:
type-aliases-package: com.jt.pojo #定义别名包
mapper-locations: classpath:/mybatis/mappers/*.xml #加载mapper映射文件
#开启驼峰映射
configuration:
map-underscore-to-camel-case: true
#打印日志
logging:
level:
com.jt.mapper: debug
yml配置文件
于 2023-03-29 09:42:33 首次发布