본문 바로가기

Spring

(5)
스프링(spring) + 타임리프(thymeleaf) 연동시 한글처리 Spring + Thymeleaf 연동시 한글 처리 sprng 에 thymeleaf 연동시 기본설정으로 한글이 깨지는 것을 볼 수 있다. 이때 다음과 같은 설정으로 한글처리를 할 수 있다. 아래의 방법으로 다른언어도 UTF-8 처리를 하여 깨지는 현상을 막을 수 있다. 1. web.xml ### xmlencodingFilterorg.springframework.web.filter.CharacterEncodingFilterencodingUTF-8encodingFilter/*spring encoding 을 위한 설정 2. servlet-context.xml### xmlThymeleafViewResolver 에 characterEncoding 값을 설정한다. 참고 UTF8 charset problem : ht..
[Maven] thymeleaf-extras-springsecurity3-2.0.0 다운로드 실패 현상 Thymeleaf 와 Spring Security 3.x 를 통합하는 과정에서 Maven info 를 등록 하였지만 다운로드가 실패하는 원인을 발견하였다. thymeleaf-extras-springsecurity3-2.0.0.pom 파일이 열리지 않는 현상이었다. Maven infogroupId: org.thymeleaf.extrasartifactId: thymeleaf-extras-springsecurity3version: 2.0.0 해결 원격 저장소의 thymeleaf-extras-springsecurity3-2.0.0.pom 파일이 수정되면 좋겠지만 일단 로컬저장소에 관련 jar 파일을 등록하여 해결하였다. mvn install:install-file -Dfile=e:\thymeleaf-ext..
Spring MVC + Thymeleaf * 테스트 환경 - Windows 7 64bit- STS 3.2.0 ( VMware vFabric tc Server Developer Edition v2.7 )- thymeleaf 2.0.17 Spring MVC + Thymeleaf 적용 STS를 이용하여 Spring MVC + Thymeleaf 적용하기 1. Spring MVC 프로젝트 생성2. pom.xml### xmlorg.thymeleafthymeleaf2.0.17org.thymeleafthymeleaf-spring32.0.17org.thymeleafthymeleaf-testing2.0.3 3. servlet-context.xml### xml 4. home.html### html Thymeleaf Hello world! The time on th..
Spring Security 를 이용하여 로그인여부 화면에 표시하기 Spring Security 3.1 에서 아래와 같은 코드를 화면에 적용하여 로그인 여부를 구분할 수 있습니다. Login Logout
web.xml 에서 classpath 사용시 주의사항 contextConfigLocationclasspath*:**/META-INF/spring/root-context.xml..... [생략] .... 위와 같은 App을 여러개 설정후 한 서버에 올릴경우 다른 App에 영향을 줄 수 있으므로 주의!!! contextConfigLocationclasspath:/META-INF/spring/root-context.xml..... [생략] ....