提交 8a38bb42 编写于 作者: 武汉红喜's avatar 武汉红喜

//

上级 9526c3ad
......@@ -7,7 +7,7 @@ public class TestSpring {
public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.register(PropertyConfiguration.class);
// context.register(PropertyConfiguration.class);
context.scan("org.hongxi.whatsmars.spring.profile");
context.getEnvironment().setActiveProfiles(ProfileUtils.getProfile());
context.refresh();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册