springboot 配置案例 applicaction.yml 配置

幼敏悟过人,读书辄成诵。这篇文章主要讲述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
【springboot 配置案例 applicaction.yml 配置】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

    推荐阅读