springlogback配置文件的使用
在logback.xml中,您可以定义几个springlogback配置文件的使用,spring,logback,Spring,Logback,在logback.xml中,您可以定义几个标记,例如和 如果我有这样的东西: <springProfile name="development"> ... </springProfile> <springProfile name="development, test"> ... </springProfile> ... ... “开发”配置文件是包含“开发人员”的两个配置文件的联合,还是“开发人员”配置文件
标记,例如
和
如果我有这样的东西:
<springProfile name="development">
...
</springProfile>
<springProfile name="development, test">
...
</springProfile>
...
...
“开发”配置文件是包含“开发人员”的两个配置文件的联合,还是“开发人员”配置文件仅激活前一个配置文件还是后一个配置文件?
<springProfile name="development">
<!-- configuration to be enabled when the "development" profile is active -->
</springProfile>
<springProfile name="development, test">
<!-- configuration to be enabled when the "development" OR "test" profiles are active -->
</springProfile>
因此,两者中的配置都与开发
概要文件相关,但只有后者与测试
相关。请检查此链接: