Spring_DAY1

이정찬·2023년 2월 6일
0

Spring

목록 보기
1/4

DI

  • Dependency Injection의 약자.

Spring component

  1. @Repository
  2. @Service
  3. @Controller

Servlet-context.xml을 수정하면, 외부 css 파일등을 수정할 수 있다.
root-context.xml의 Bean은, 싱글톤 객체를 생성하겠다는 의미이다. (xml, java annotation @Configuration-cglib 필요) --> pom.xml에 의존성(<dependency></dependency>) 추가해 주면 된다.

mvnrepository.com 사이트 에서 의존성 가져올 수 있다. 따로 다운로드 받을 필요 없이 복붙만 해오면 사용할 수 있다.

  • 공용 폴더에서 폴더 가져와서 .m2에 그대로 넣기
profile
개발자를 꿈꾸는 사람

0개의 댓글