application.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. spring.profiles.active: dev
  2. spring:
  3. mvc:
  4. favicon:
  5. enabled: false
  6. # thymeleaf
  7. thymeleaf:
  8. prefix: classpath:/templates/
  9. check-template-location: true # 这个可以不配置,检查模板位置
  10. suffix: .html
  11. encoding: UTF-8
  12. content-type: text/html
  13. mode: HTML5
  14. cache: false #避免改了模版还要重启服务器
  15. ---
  16. spring:
  17. profiles: dev
  18. thymeleaf:
  19. cache: false
  20. mongodb1.database: crowd_review
  21. mongodb1.host: 127.0.0.1
  22. mongodb1.port: 27017
  23. mongodb2.database: co-report
  24. mongodb2.host: 127.0.0.1
  25. mongodb2.port: 27017
  26. report.export.addr: http://47.99.140.117:9002/generateReport
  27. report.export.excel.addr: http://47.99.140.117:9003/generateReport
  28. task.info.addr: http://47.99.140.117:9001/Bug/api/extra/getExamList
  29. server:
  30. port: 9004
  31. # port: 8090
  32. logging:
  33. level:
  34. com.mooctest: debug
  35. pattern:
  36. console: "%d{yyyy-MM-dd HH:mm:ss} [%p] [%t] [%c] %m%n"
  37. ---
  38. spring:
  39. profiles: test
  40. thymeleaf:
  41. cache: false
  42. mongodb1.database: ${MONGODB_REVIEW_DB}
  43. mongodb1.host: ${MONGODB_REVIEW_HOST}
  44. mongodb1.port: ${MONGODB_REVIEW_PORT}
  45. mongodb2.database: ${MONGODB_REPORT_DB}
  46. mongodb2.host: ${MONGODB_REPORT_HOST}
  47. mongodb2.port: ${MONGODB_REPORT_PORT}
  48. report.export.addr: ${EXPORT_ADDR}
  49. task.info.addr: ${TASK_ADDR}
  50. server:
  51. port: 9004
  52. # port: 8090
  53. logging:
  54. level:
  55. com.mooctest: debug
  56. pattern:
  57. console: "%d{yyyy-MM-dd HH:mm:ss} [%p] [%t] [%c] %m%n"