码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2019-12-13 21:27:29      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:unicode   char   enc   connect   mapper   ica   span   col   drive   

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 配置

标签:unicode   char   enc   connect   mapper   ica   span   col   drive   

原文地址:https://www.cnblogs.com/lizhiwei666/p/12037284.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!