Skip to content

Commit 653d55e

Browse files
committed
SpringConfig.java
SpringConfig.java
1 parent 479374e commit 653d55e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)