We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 479374e commit 653d55eCopy full SHA for 653d55e
spring-profile/src/main/java/com/hmkcode/spring/SpringConfig.java
@@ -0,0 +1,17 @@
1
+package com.hmkcode.spring;
2
+
3
+import org.springframework.context.annotation.Bean;
4
+import org.springframework.context.annotation.Configuration;
5
+import org.springframework.context.annotation.Profile;
6
7
+import com.hmkcode.vo.Person;
8
9
+@Configuration
10
+@Profile("development")
11
+public class SpringConfig {
12
13
+ @Bean
14
+ public Person person(){
15
+ return new Person();
16
+ }
17
+}
0 commit comments