1 #修改tomcat端口
2 server.port=8080
3 #设定Url的地址路径
4 server.servlet.context-path=/springboot
5 #设定前缀
6 spring.mvc.view.prefix=/
7 #设定后缀
8 spring.mvc.view.suffix=.jsp
9 #连接字符串Mysql
10 spring.datasource.url=jdbc:mysql://localhost:3306/boot?serverTimezone=UTC
11 #mysql驱动
12 spring.datasource.driver-class-name=com.mysql.jdbc.Driver
13 #mysql用户名
14 spring.datasource.username=root
15 #mysql密码
16 spring.datasource.password=root
17 #阿里巴巴数据库连接池
18 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
19 #扫描mapper下面的所有.xmlwen件
20 mybatis.mapper-locations=classpath:mapper/*.xml
21 #扫描entity下所有实体
22 mybatis.type-aliases-package=com.springboot.entity