springboot 配置案例 applicaction.yml 配置

Posted lizhiwei666

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springboot 配置案例 applicaction.yml 配置相关的知识,希望对你有一定的参考价值。

server:
port: 8091
servlet:
context-path: /
spring:
datasource:

driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost: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-plush配置
mybatis-plus:
type-aliases-package: com.jt.pojo
mapper-locations: classpath:/mybatis/mappers/*.xml
configuration:
map-underscore-to-camel-case: true

logging:
level:
com.jt.mapper: debug

以上是关于springboot 配置案例 applicaction.yml 配置的主要内容,如果未能解决你的问题,请参考以下文章