【发布时间】:2017-01-29 16:21:45
【问题描述】:
我想避免在application.properties 文件中包含很多东西,而不是在我看来单独的文件中更好。
application.properties 应该是这样的
@include module1.properties
@include module1.properties
...
###################################
######### Spring Misc #############
###################################
# Direct log to a log file
logging.file=/tmp/kmp-manager.log
#local listening port
server.port=8082
spring.profiles=nr_dev nr_testing production
spring.profiles.active=production
spring.datasource.platform=postgresql
java.security.egd=file:/dev/./urandom
这可能吗? 如果不是,那么避免混乱的明智方法是什么?
【问题讨论】:
标签: spring properties spring-boot