일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- jQuery
- 생명주기 콜백
- python
- programmers
- JPA
- oauth
- Hibernate
- Project
- server send event
- Stream
- DI
- flask
- WIL
- web
- Java
- JWT
- Spring Security
- real time web
- html
- spring
- SseEmitter
- Anolog
- cookie
- session
- bean
- jenkins
- hanghae99
- javascript
- google oauth
- 항해99
Archives
- Today
- Total
목록annotation (1)
끄적끄적 코딩일지
[Spring 기초] Bean 등록 및 사용하기(Autowired)
Bean 등록방법 Spring에서 Bean을 등록하는 방법은 크게 xml 파일을 사용하는 방법과 Annotation을 사용하는방법 2가지로 나뉜다.(최근에는 Annotation을 사용하는 방법이 주로 쓰인다.) xml 파일으로 등록하는 방법 스프링은 시작시에 webapp/web.xml과 webapp/WEB-INF/spring/root-context.xml , webapp/WEB-INF/spring/servlet-context.xml 으로 bean을 등록한다. 1.web.xml : Spring 동작을 위한 설정정보이다. Spring 버전, 프로젝트명, 배포자, Bean을 등록하는 root-context.xml 혹은 servlet-context.xml 위치, welcom page등을 설정할 수 있다. 2. ..
Spring
2022. 5. 30. 10:37