小编I A*_*OOT的帖子

如何为包设置 Spring 配置文件?

我想为整个包设置一个配置文件名称,但我不知道如何做。如果哪里没有简单的方法,那么我必须用@Profile注释标记包和子包中的每个类。

<context:component-scan/>标签不支持这样的属性profile,所以我不知道。

java spring spring-profiles

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

java ×1

spring ×1

spring-profiles ×1