spring.profiles.active: dev spring: mvc: favicon: enabled: false # thymeleaf thymeleaf: prefix: classpath:/templates/ check-template-location: true # 这个可以不配置,检查模板位置 suffix: .html encoding: UTF-8 content-type: text/html mode: HTML5 --- spring: profiles: dev thymeleaf: cache: false mongodb1.database: crowd_review mongodb1.host: 127.0.0.1 mongodb1.port: 27017 mongodb2.database: co-report mongodb2.host: 127.0.0.1 mongodb2.port: 27017 report.export.addr: http://47.99.140.117:9002/generateReport task.info.addr: http://47.99.140.117:9001/Bug/api/extra/getExamList server: port: 8080 # port: 8090 logging: level: com.mooctest: debug pattern: console: "%d{yyyy-MM-dd HH:mm:ss} [%p] [%t] [%c] %m%n" --- spring: profiles: test thymeleaf: cache: false mongodb1.database: ${MONGODB_REVIEW_DB} mongodb1.host: ${MONGODB_REVIEW_HOST} mongodb1.port: ${MONGODB_REVIEW_PORT} mongodb2.database: ${MONGODB_REPORT_DB} mongodb2.host: ${MONGODB_REPORT_HOST} mongodb2.port: ${MONGODB_REPORT_PORT} report.export.addr: ${EXPORT_ADDR} task.info.addr: ${TASK_ADDR} server: port: 8080 # port: 8090 logging: level: com.mooctest: debug pattern: console: "%d{yyyy-MM-dd HH:mm:ss} [%p] [%t] [%c] %m%n"