SpringBoot integrated Mybatis application.properties profile

Tomcat port # modify 
the server.port = 8080
# Url address set path
server.servlet.context-path = / springboot
# prefix set
spring.mvc.view.prefix = /
# setting suffix
spring.mvc.view.suffix .jsp =
# connection string Mysql
spring.datasource.url = jdbc: MySQL: // localhost:? 3306 / = the Boot serverTimezone UTC
#mysql drive
spring.datasource.driver-class-name = com.mysql.jdbc.Driver
# mysql username
spring.datasource.username = the root
#mysql password
spring.datasource.password = the root
# Alibaba database connection pool
spring.datasource.type = com.alibaba.druid.pool.DruidDataSource
# mapper scan all of the following member .xmlwen
CLASSPATH =-locations mybatis.mapper:. Mapper / XML *
# scans all physical entity
mybatis.type-aliases-package = com.springboot.entity

Guess you like

Origin www.cnblogs.com/wangmeng960111/p/10984687.html