# 插件 進行配置 也可以用yml # 1. 配置 Tomcat 修改端口號 server.port=8848 server.context-path=/zxf #2.配置數據源 spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/qy100 spring.datasource.username=root spring.datasource.password=root #3.配置mybatis #3.1 給mapper.xml 中需要返回的實體類起別名,直接掃描包的形式進行操作。 mybatis.type-aliases-package=com.aaa.zxf.model #3.2 配置mapper.xml的映射 支持通配符 mybatis.mapper-locations=classpath:mapper/*Mapper.xml #4 springboot 配置thymeleaf #4.1先手動修改他的緩存(開發階段) ,默認是true ,改為false #4.2 不配置也可以直接使用。 spring.thymeleaf.cache=false #5. 啟用不嚴謹 檢查HTML LEGACYHTML5 # 導入jar包 spring.thymeleaf.mode=LEGACYHTML5