-
서블릿 객체 생명 주기?Back end/Spring MVC 2023. 11. 12. 17:10
" 특별한 파일 요청을 할 수 없다 요청시에는 무조건 자바를 거친다"
- URL: 자원 접근 방식
- URI : 식별자 접근 방식
ex)
http://naver.com//a.png : URL
http://naver.com/picture/a : URI
request -> 서블릿 컨테이너(톰캣)
- 서블릿 객체 생성 (NEW) (2번째 객채 만들때는 재사용)
- init()
- service()
-> post,get,put,delete
- get( ) : 스레드1 .. 스레드2..스레드3..스레드4
: DB연결,데이터,HTML 담아서 응답
...post(),delete(),put()
(java 자원 은 톰캣 작동)
(html.css는 아파치작동)
톰켓 기본 설정 -> 스레드 Auto 20개를 설정하면 20명이 pull로 차면 21번째 스레드는 대기함. 다시 사용할때는 종료된 스레드를 재활용함.
출저(인프런): 스프링부트 개념정리(이론) - 최주호
'Back end > Spring MVC' 카테고리의 다른 글
스프링 프레임워크를 이해하기 위한 요소들 (0) 2023.11.24 web.xml (0) 2023.11.12 톰캣? (0) 2023.11.12 HTTP? (0) 2023.11.12 Spring < -> Spring Boot (0) 2023.11.07