spring 썸네일형 리스트형 [spring] VO,DTO 객체에는 @Autowired 붙이지않는다. VO,DTO 객체는 데이터를 담는 역할을 하기 때문에 Autowired를 사용하지 않는다. 더보기 [Spring] 게시판 목록(LIST) 우선 게시판 목록 부터 만들겠다 프로젝트 디렉토리는 아래와 같다. BoardVO public class BoardVO { private int bno; public int getBno() { return bno; } public void setBno(int bno) { this.bno = bno; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String.. 더보기 [spring] 프로젝트 설정 어느덧 내가 1년차 개발자가 되었다. 별로 한것도 없는데 벌써.. 실력향상을 위해, 그리고 그간 노력을 체크할겸 토이 프로젝트를 진행해보도록했다. 궁금한게 있으면 댓글달아주시면 알려드리겠습니다. pom.xml //자바 1.8, 스프링 5.0.7 1.8 5.0.7.RELEASE 1.6.10 1.6.6 //스프링 web mvc org.springframework spring-context ${org.springframework-version} // 아파치 로깅 commons-logging commons-logging org.springframework spring-webmvc ${org.springframework-version} // lombok org.projectlombok lombok 1.18.10 .. 더보기 [SPRING] web.xml context-param 여러개 등록 ,를 이용해서 띄어준다 더보기 Description Resource Path Location TypeCannot find DTD 'file:///C:/Users/we/eclipse-workspace/gridpjt/src/main/resources/log4j.dtd'.Create the DTD file or configure an XML catalog for this DTD. log4j.xml /gridpjt/src/main/resources line 2 Language Servers log4j.xml 파일을 수정한다. 뚝딱. 더보기 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 다음