application.properties 配置

spring.datasource.url= jdbc:mysql://127.0.0.1:3306/xxx?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=xxx // 数据库密码

server.port=3000	// 端口开在本地3000
server.tomcat.uri-encoding=UTF-8

spring.thymeleaf.cache=false
spring.thymeleaf.encoding=UTF-8
posted @ 2022-10-24 21:16  我就一水  阅读(76)  评论(0)    收藏  举报