Spring(5/28)
about. What I learned/about.Gudi

Spring(5/28)

DI(dependency Injection)-의존성 주입 

가장 중요한 개념이다. 

 

 

#service나 dao에서 이름을 지을 경우

1.인터페이스를 구별

Interface : I서비스명 ex) ITestService

Class : 서비스명 ex) TestService

 

2.클래스를 구별

Interface : 서비스명 ex) TestService

Class : 서비스명Impl ex) TestServiceImpl

 

testService(interface and class), test3 만들기 
@Autowired하는 이유는 DI(의존성)주입을 위해서 하는 것이다.

'about. What I learned > about.Gudi' 카테고리의 다른 글

SPRING - 글쓰기, 수정 흐름도  (0) 2021.06.06
spring 흐름대로 복습하기  (0) 2021.06.01
Spring - Ajax  (0) 2021.05.27
spring  (0) 2021.05.25
SPRING 설치하기  (0) 2021.05.24