spring profile
来源:互联网 发布:轻便婴儿车推荐 知乎 编辑:程序博客网 时间:2024/05/16 17:10
1
2
3
4
5
@Configuration
@Profile
(value=
"productprofile"
)
public
class
ProductConfig {
...
}
1
<
beans
profile
=
"p1,p2"
>
1
2
3
4
5
6
7
8
9
1
.ENV方式: ConfigurableEnvironment.setActiveProfiles(
"unittest"
)
2
.JVM参数方式: -Dspring.profiles.active=
"unittest"
3
.web.xml方式:
<init-param>
<param-name>spring.profiles.active</param-name>
<param-value>production</param-value>
</init-param>
4
.标注方式(junit单元测试非常实用):
@ActiveProfiles({
"unittest"
,
"productprofile"
})
0 0
- Spring profile
- spring profile
- spring profile
- Maven profile整合Spring profile
- Maven profile整合Spring profile
- spring学习--spring profile
- maven spring profile
- Spring Profile 使用
- spring profile使用事项
- Spring Profile基本使用
- Spring Boot Profile使用
- Spring-profile设置
- spring注解之@profile
- 第六章 Spring Profile
- Spring profile 详解
- Spring Boot Profile 配置
- 详解Spring中的Profile
- spring profile激活处理
- 234. Palindrome Linked List(判断链表是不是回文的)
- MapReduce之多MapReduce执行
- android中的Stack
- 常用git命令
- 让Category支持添加属性与成员变量
- spring profile
- Codeforces Round #361 (Div. 2) 题解
- Hibernate\Struts2\Spring
- SVM基本思想及应用
- java 在windows环境 android环境 linux环境对7z包的解压缩
- php保留小数
- AndroidStudio中如何获取SHA1
- iOS加载Gif图片的N种方式
- 9.View the Exhibit and examine the privileges granted to the SL_REP user.