application.properties 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #============================应用配置=========================================
  2. # 项目环境
  3. spring.profiles.active = @profiles.active@
  4. # 应用名称
  5. spring.application.name = energy-manage-service
  6. # 服务端口(同台服务器,配置到nacos)
  7. #server.port = 16200
  8. # 上下文路径
  9. server.servlet.context-path = /energy-manage-service/
  10. #=============================tomcat配置=======================================
  11. #uri编码格式
  12. server.tomcat.uri-encoding = UTF-8
  13. # 最大连接数
  14. server.tomcat.max-connections=100000
  15. # 最小空闲线程数
  16. server.tomcat.threads.min-spare=100
  17. # 最大线程数
  18. server.tomcat.threads.max=800
  19. # 当tomcat启动线程达到最大时,允许的最大排队请求个数
  20. server.tomcat.accept-count = 1000
  21. # server.tomcat.basedir = /opt/projecttmp
  22. server.maxHttpHeaderSize = 8192
  23. #请求数据量
  24. server.tomcat.max-http-form-post-size = 200MB
  25. #超时时间
  26. server.tomcat.connection-timeout = 180000
  27. #=============================日志配置=======================================
  28. # 日志路径(环境)
  29. path.log = @profiles.active@
  30. # debug - sql显示
  31. logging.level.com.energy.manage.service.mappers= debug
  32. #=============================banner配置=======================================
  33. #banner路径
  34. spring.banner.location=classpath:banner/banner.txt