▣ Framework/Spring🍃

    [Spring] Java 기반으로 Spring 설정 변경하기(4) [security로 인한 한글 깨짐 해결하기]

    [Spring] Java 기반으로 Spring 설정 변경하기(3)[security, csrf 적용] [Spring] Java 기반으로 Spring 설정 변경하기(2)[jsp 연동 및 라이브러리 적용] [Spring] Java 기반으로 Spring 설정 변경하기(1)[xml 기반에서 Java 기반으로 설정 변경하기] 1. Java 기반으로 Spring 설정.. yermi.tistory.com - security로 인한 한글 깨짐 해결하기 - WebConfig.java package works.yermi.config; // import 생략 public class WebConfig extends AbstractAnnotationConfigDispatcherServletInitializer{ // 코드 생략 ..

    [Spring] Java 기반으로 Spring 설정 변경하기(3) [security, csrf 적용]

    [Spring] Java 기반으로 Spring 설정 변경하기(2)[jsp 연동 및 라이브러리 적용] [Spring] Java 기반으로 Spring 설정 변경하기(1)[xml 기반에서 Java 기반으로 설정 변경하기] 1. Java 기반으로 Spring 설정 변경하기 기존 시큐리티 적용 시에 xml로 관리할 경우, 예외 페이지 등록이 매 yermi.tistory.com 1. security 패키지 및 하위 클래스 생성 - CustomAccessDeniedHandler.java package works.yermi.security; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpSer..

    [Spring] Java 기반으로 Spring 설정 변경하기(2) [jsp 연동 및 라이브러리 적용]

    [Spring] Java 기반으로 Spring 설정 변경하기(1)[xml 기반에서 Java 기반으로 설정 변경하기] 1. Java 기반으로 Spring 설정 변경하기 기존 시큐리티 적용 시에 xml로 관리할 경우, 예외 페이지 등록이 매우 번거로움. → 시큐리티를 좀 더 쉽게 관리하기 위해 Java로 설정을 변경하려고 함 - yermi.tistory.com 1. jsp 파일 웹 페이지로 출력하기 - ServletConfig.java package works.yermi.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.sp..

    [Spring] Java 기반으로 Spring 설정 변경하기(1) [xml 기반에서 Java 기반으로 설정 변경하기]

    1. Java 기반으로 Spring 설정 변경하기 기존 시큐리티 적용 시에 xml로 관리할 경우, 예외 페이지 등록이 매우 번거로움. → 시큐리티를 좀 더 쉽게 관리하기 위해 Java로 설정을 변경하려고 함 - 참고할 파일 목록 1) web.xml : 어플리케이션 설정 2) root-context.xml : 스프링 코어 설정 3) servlet-context.xml : 스프링 mvc 설정 2. pom.xml(maven-war-plugin 추가) org.apache.maven.plugins maven-war-plugin 3.2.0 false 3 config 패키지&클래스 생성 package works.yermi.config; import org.springframework.web.servlet.suppor..

    [Spring] 프로젝트의 경로(Context Path) 변경하기 [Web Modules와 component를 이용한 경로 변경]

    - 프로젝트의 경로(Context Path) 변경하기 - Web Modules를 통한 경로 변경(일시적) - component를 통한 경로 변경(영구적)