일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- tomcat
- Spring Data REST
- spring bean
- spring jpa
- JUnit
- ORM
- 톰캣
- spring camp
- spring-webmvc
- spring-mvc
- IntelliJ
- JPA mapping
- REST API
- Spring Data JPA
- JPA
- Spring Batch
- static inner class
- Data REST
- spring boot
- docker
- spring-webmvc #코드읽기
- ApplicationPidFileWriter
- batch
- spring boot tomcat
- spring batch 코드
- 세미나
- Spring
- spring pid
- SuperTypeToken
- 코드 리뷰
- Today
- 1
- Total
- 916,386
목록spring-webmvc (5)
woniper
Spring-MVC로 웹 애플리케이션을 개발하면 아래와 같은 Controller를 만든다. @Controller public class HelloController { @GetMapping("/hello") public String hello() { return "hello Spring~"; } } 어떻게 @Controller 선언 만으로 메소드가 실행되고, Controller 실행 전/후로 전처리, 후처리 가능한 Interceptor가 동작할까? 뿐만 아니라, 파일 업로드, View 반환 등 Spring-MVC에서 제공되는 여러 가지 기능들은 어떻게 실행될까?Spring-MVC 읽기 #5. AbstractDispatcherServletInitializer와 AbstractAnnotationCon..
이번 글은 AbstractContextLoaderInitializer 클래스의 하위 클래스인 AbstractDispatcherServletInitializer 클래스와 AbstractAnnotationConfigDispatcherServletInitializer 클래스를 살펴볼 것이다. AbstractDispatcherServletInitializer AbstractContextLoaderInitializer 클래스는 ContextLoader를 통해 root WebApplicationContext를 생성하고, 초기화(refresh)한다는 걸 이해했다. 마찬가지로 AbstractDispatcherServletInitializer 클래스는 DispatcherServlet을 생성하고 초기화한다. Abstrac..
이전 글에서 WebApplicationInitializer 구조에 대해 봤다. 이번 글은 WebApplicationInitializer 구현체 중 하나인 AbstractContextLoaderInitializer 클래스에 대해 이야기해볼 예정이다.코드를 보자. AbstractContextLoaderInitializer public abstract class AbstractContextLoaderInitializer implements WebApplicationInitializer { /** Logger available to subclasses. */ protected final Log logger = LogFactory.getLog(getClass()); @Override public void onSt..
주의) 저도 처음 코드를 읽으며 작성하는 글이기 때문에 어렵게 전달되거나, 틀린 부분은 언제든 피드백을 해주세요. 이번 글은 Spring-MVC의 시작에 대해 알아볼 것이다. public static void main(String... args) {} java 개발자라면 위 코드는 익숙하다. java에서 main 메소드는 애플리케이션의 최초 시작점이다. 그런데 Spring-MVC로 개발한 웹 애플리케이션을 war로 빌드 후 Web Application Server(이하 WAS)로 실행하는 경우엔 main 메소드가 최초 시작점이 아닌 것을 알 수 있다. WAS 실행이 최초 시작점이라고 볼 수도 있겠다. Spring Boot를 사용하면 main 메소드가 최초 시작점이다. 이 글은 Spring Boot를 이야..
Spring-MVC는 Spring Framework의 feature 중 하나다. 때문에 코드를 보기 위해서는 Sprig Framework github 코드를 clone 해야 한다. clone & build github repository clone 참고 : Build from Source $ git clone https://github.com/spring-projects/spring-framework.git build $ cd spring-framework $ ./gradlew build 프로젝트 크기가 커서 빌드가 오래 걸린다. test spring-webmvc module $ ./gradlew -a :spring-webmvc:test 코드를 clone 받아 빌드 후 spring-webmvc 모듈을 t..