application-uat.properties 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # 项目contextPath
  2. # spring boot 2.x 的ContextPath配置有变化:
  3. server.servlet.context-path=/bat
  4. logging.level.root=info
  5. logging.path=/opt/uat/batch/logs
  6. # 服务端口
  7. server.port=8084
  8. # session最大超时时间(分钟),默认为30
  9. server.session-timeout=60
  10. # 该服务绑定IP地址,启动服务器时如本机不是该IP地址则抛出异常启动失败,只有特殊需求的情况下才配置
  11. #server.address=192.168.1.66
  12. # tomcat最大线程数,默认为200
  13. server.tomcat.max-threads=100
  14. # tomcat的URI编码
  15. server.tomcat.uri-encoding=UTF-8
  16. # 静态文件请求匹配方式
  17. spring.mvc.static-path-pattern=/**
  18. #spring.thymeleaf.mode=LEGACYHTML5
  19. #spring boot 2.x 参数变化
  20. spring.thymeleaf.mode=HTML
  21. #dev tools
  22. spring.devtools.livereload.enabled=true
  23. spring.thymeleaf.cache=false
  24. spring.thymeleaf.cache-period=0
  25. spring.thymeleaf.template.cache=false
  26. #注意中文乱码
  27. spring.datasource.url=jdbc:mysql://10.0.0.157:3306/smart_city_uat?characterEncoding=utf-8&useSSL=false
  28. spring.datasource.username=root
  29. spring.datasource.password=zoniot
  30. spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  31. # Specify the DBMS
  32. spring.jpa.database = MYSQL
  33. # Show or not log for each sql query
  34. spring.jpa.show-sql = true
  35. # DDL mode. This is actually a shortcut for the "hibernate.hbm2ddl.auto" property. Default to "create-drop" when using an embedded database, "none" otherwise.
  36. spring.jpa.hibernate.ddl-auto = update
  37. # Hibernate 4 naming strategy fully qualified name. Not supported with Hibernate 5.
  38. #spring.jpa.hibernate.naming.strategy = org.hibernate.cfg.ImprovedNamingStrategy
  39. # stripped before adding them to the entity manager)
  40. #spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
  41. # 新特性
  42. spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
  43. spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  44. # quartz任务配置
  45. spring.quartz.job-store-type=jdbc
  46. spring.quartz.properties.org.quartz.scheduler.instanceName=clusteredScheduler
  47. spring.quartz.properties.org.quartz.scheduler.instanceId=AUTO
  48. spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
  49. spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  50. spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_
  51. #spring.quartz.properties.org.quartz.jobStore.isClustered=true
  52. #spring.quartz.properties.org.quartz.jobStore.clusterCheckinInterval=10000
  53. spring.quartz.properties.org.quartz.jobStore.useProperties=false
  54. spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
  55. spring.quartz.properties.org.quartz.threadPool.threadCount=10
  56. spring.quartz.properties.org.quartz.threadPool.threadPriority=5
  57. spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
  58. # 打开集群配置
  59. spring.quartz.properties.org.quartz.jobStore.isClustered:true
  60. # 设置集群检查间隔20s
  61. spring.quartz.properties.org.quartz.jobStore.clusterCheckinInterval=2000