application.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. task.info.addr: http://47.99.140.117:9001/Bug/api/extra/getExamList
  28. server:
  29. port: 8080
  30. # port: 8090
  31. logging:
  32. level:
  33. com.mooctest: debug
  34. pattern:
  35. console: "%d{yyyy-MM-dd HH:mm:ss} [%p] [%t] [%c] %m%n"
  36. ---
  37. spring:
  38. profiles: test
  39. thymeleaf:
  40. cache: false
  41. mongodb1.database: ${MONGODB_REVIEW_DB}
  42. mongodb1.host: ${MONGODB_REVIEW_HOST}
  43. mongodb1.port: ${MONGODB_REVIEW_PORT}
  44. mongodb2.database: ${MONGODB_REPORT_DB}
  45. mongodb2.host: ${MONGODB_REPORT_HOST}
  46. mongodb2.port: ${MONGODB_REPORT_PORT}
  47. report.export.addr: ${EXPORT_ADDR}
  48. task.info.addr: ${TASK_ADDR}
  49. server:
  50. port: 8080
  51. # port: 8090
  52. logging:
  53. level:
  54. com.mooctest: debug
  55. pattern:
  56. console: "%d{yyyy-MM-dd HH:mm:ss} [%p] [%t] [%c] %m%n"