Spring 썸네일형 리스트형 [spring] VO,DTO 객체에는 @Autowired 붙이지않는다. VO,DTO 객체는 데이터를 담는 역할을 하기 때문에 Autowired를 사용하지 않는다. 더보기 [SPRING] web.xml context-param 여러개 등록 ,를 이용해서 띄어준다 더보기 Spring Error 예외처리 스프링에서 에러페이지 처리하는 방법. web.xml을 이용해서 에러페이지 예외처리를 하겠다~ 우선 예외처리에서 보여줄 화면단 jsp를 만든다. 저같은 경우는 자주 접하게되는 404, 405,500페이지를 만들겠다. jsp단을 만들고 난 후 web.xml을 만들어야한다. web.xml java.lang.Throwable /WEB-INF/views/error/error.jsp 404 /WEB-INF/views/common/404.jsp 405 /WEB-INF/views/common/405.jsp 500 /WEB-INF/views/common/500.jsp 이렇게 해주면 된다. 이외에도 다른 예외처리 방법이 있으나 나중에 포스팅하겠다 더보기 Spring-security 기본 세팅 pom.xml org.springframework.security spring-security-core 5.0.6.RELEASE org.springframework.security spring-security-taglibs 5.0.6.RELEASE org.springframework.security spring-security-config 5.0.6.RELEASE web.xml springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy springSecurityFilterChain /* contextConfigLocation /WEB-INF/spring/security-context.xml security-context.xml 더보기 이전 1 다음