Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9fdce93

Browse files
[improve] Set the default profile
1 parent 1ad6eed commit 9fdce93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎d01/d01s05/d01s05e02-bean-profiles/src/main/java/net/safedata/spring/training/d01/s05/BeanProgrammaticProfilesDemo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class BeanProgrammaticProfilesDemo {
2222
// usually passed as a '-Dspring.profiles.active=<profiles>' run argument
2323
public static void main(String[] args) {
2424
System.setProperty(PROFILE_ACTIVATION_PROPERTY, Profiles.DEV);
25+
System.setProperty(DEFAULT_PROFILE_SETTING_PROPERTY, Profiles.DEFAULT);
2526

2627
final ApplicationContext applicationContext =
2728
new AnnotationConfigApplicationContext(BeanProfilesConfig.class, ProfileEnabledConfig.class);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /