application.properties 1.9 KB

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