일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- java
- pointcut
- spring
- Exception
- Servlet
- 자바
- Greedy
- AOP
- JPQL
- kotlin
- db
- 그리디
- springdatajpa
- QueryDSL
- 백준
- 스프링 핵심 기능
- Thymeleaf
- 스프링 핵심 원리
- Spring Boot
- SpringBoot
- 인프런
- Proxy
- Android
- http
- JDBC
- 김영한
- 스프링
- jpa
- 알고리즘
- transaction
- Today
- Total
목록ServletContainer (2)
개발자되기 프로젝트
1. 스프링 부트 서블릿 환경 구성 @ServletComponentScan 스프링 부트는 서블릿을 직접 등록해서 사용할 수 있도록 @ServletComponentScan 을 지원. 현재 패키지 하위로 Servlet 찾아서 등록함. package hello.servlet; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; @ServletComponentScan @SpringBootApplication public class Se..
1. 서블릿 특징 @WebServlet(name = "helloServlet", urlPatterns = "/hello") public class HelloServlet extends HttpServlet { @Override protected void service(HttpServletRequest request, HttpServletResponse response){ //애플리케이션 로직 } } urlPatterns(/hello)의 URL이 호출되면 서블릿 코드가 실행 HTTP 요청 정보를 편리하게 사용할 수 있는 HttpServletRequest request객체에서 원하는 정보 꺼내면 됨. HTTP 응답 정보를 편리하게 제공할 수 있는 HttpServletResponse 원하는 정보를 Respon..