일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- ReactJS
- jsp
- docker
- JPA
- javascript
- db
- linux
- laravel
- AWS
- IntelliJ
- Oracle
- redis
- java
- MySQL
- Spring
- tool
- Gradle
- Git
- ubuntu
- devops
- Web Server
- Spring Boot
- 맛집
- elasticsearch
- springboot
- jenkins
- it
- php
- Design Patterns
- 요리
- Today
- Total
목록Spring (73)
아무거나
Interceptor Desc: Controller에 들어오는 요청 HttpRequest와 Controller가 응답하는 HttpResponse를 가로채는 역할을 한다. Interceptor은 주로 관리자만 접근할 수 있는 관리자 페이지에 접근하기 전에 인증을 하는 용도로 활용한다. 또한 Interceptor는 Servlet의 앞, 뒤에서 HttpRequest, HttpRequest를 가로채는 Filter와 역할이 유사한데 둘은 서로 다르다. 우선 Interceptor에 대해서만 알아보자 Interceptor Class 생성 ... import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impo..
@ComponentScan Desc: Stereotype Annotaion이 붙은 Bean들을 자동으로 스캔해서 등록해준다. Stereotype Annotaion(ex: @Component, @Repository, @Service, @Controller 등..)이란 Bean으로 등록하기 위한 Annotation을 뜻함 [Example Code]@ComponentScan("com.bong.myPackage") @ComponentScan(basePackages={"com.bkjeon", "com.bong"}) @ComponentScan({"com.bkjeon", "com.bong"}) @ComponentScan(basePackageClasses=TestCode.class) public interface Te..
스케줄링 Scheduler Spring Boot에서 @EnableScheduling, @Scheduled를 사용한 스케줄링 구현 메인 메소드가 있는 애플리케이션 구동 클래스인 Application.java에 @EnableScheduling 설정 및 @Bean 추가 .... import org.springframework.scheduling.annotation.EnableScheduling; @SpringBootApplication @EnableScheduling public class Application { public static void main(String[] args) { ApplicationContext ctx = SpringApplication.run(Application.class, arg..