摘要:
@Profile的作用: Spring容器根据标识激活对应的profile注解,其关联的bean才会被注册到容器中。最常见的用途是区分开发环境,测试环境,生产环境信息 阅读全文
摘要:
PropertySource 或者 PropertySources 阅读全文
摘要:
Spring Condition注解的主要作用是根据条件给容器注入bean,简称条件注解。它是spring 4.0引入的新特性 Match 实现了Condition,重写 matches方法,当该方法返回true的时候,表示条件满足。 从参数context里面可以获取 1.context.getEn 阅读全文