server.port=8082 server.servlet.context-path=/shennongshi server.tomcat.uri-encoding=UTF-8 ## 服务名 #spring.application.name=shennongshi-yd ## 环境设置:dev、test、prod(开发环境、测试环境、生产环境) #spring.profiles.active=dev # mysql数据库连接 # 本地测试数据库 #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.datasource.url=jdbc:mysql://localhost:3306/dingtalk?serverTimezone=GMT%2B8 #spring.datasource.username=root #spring.datasource.password=123456 # 云璞【47.98.130.40服务器】测试数据库 #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.datasource.url=jdbc:mysql://47.97.181.40:3306/dingtalk?serverTimezone=GMT%2B8 #spring.datasource.username=root #spring.datasource.password=cp-root@2022++ #定时同步 #配置日志,当前为默认的控制台输出,也可以用log4j #mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl #控制台显示sql #spring.jpa.show-sql=true #更新或者创建数据表结构 #spring.jpa.hibernate.ddl-auto=update #返回json的全局时间格式 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss spring.jackson.time-zone=GMT+8 #配置mapper xml文件的路径 #mybatis-plus.mapper-locations=classpath:com/muzhi/lz/mapper/xml/*.xml #mybatis-plus.config-location=classpath:mybatis/mybatis-config.xml #禁用缓存 spring.thymeleaf.cache=false #spring.thymeleaf.mode= LEGACYHTML5 #spring.resources.chain.strategy.content.enabled=true #spring.resources.chain.strategy.content.paths=/** #spring.thymeleaf.check-template = true #spring.thymeleaf.servlet.content-type=text/html #spring.thymeleaf.enabled = true #spring.thymeleaf.encoding = UTF-8 #spring.thymeleaf.prefix = classpath:/static/ #spring.thymeleaf.suffix = .html #定义日期提交的格式(日期的格式化):SpingMVC将页面提交的值需要转换为指定类型;默认的是yyyy/MM/dd #spring.mvc.date-format=yyyy-MM-dd spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/templates/