当前位置:首页 > 数据库 > 正文

springboot 配置案例(一) applicaction.yml 配置

2020-02-12 数据库

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

driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/jtdb?serverTimezone=GMT+8&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

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/15101.html