#修改tomcat的端口號
server.port=8080
#config view resolver配置前端視圖解析器
spring.mvc.view.prefix=/pages/
#spring.mvc.view.suffix=.jsp
#config static resources配置靜態資源訪問
spring.mvc.static-path-pattern=/static/**
# 可以讓瀏覽器直接訪問到html
spring.resources.static-locations:classpath:/static/,classpath:/templates/
#數據庫連接
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=sa
spring.datasource.password=123
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#mybatis下划線與駝峰互相轉換
mybatis.configuration.map-underscore-to-camel-case=true
#mybatis 配置
# 配置映射文件加載
mybatis.mapper-locations=classpath*:mappers/*.xml
# 實體類通過別名使用
#mybatis.type-aliases-package=com.example.springboot.mybatis.entity
#時間戳統一轉換
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8
#設置為true時,后定義的bean會覆蓋之前定義的相同名稱的bean。
#spring.main.allow-bean-definition-overriding=true