Tip/Spring16 Thymeleaf Extras Thymeleaf - Tiles 2 integration module https://github.com/thymeleaf/thymeleaf-extras-tiles2 Thymeleaf - Module for Internet Explorer conditional comments https://github.com/thymeleaf/thymeleaf-extras-conditionalcomments 2013. 8. 14. spring MVC + tiles 2.2.2 본 포스팅은 STS로부터 생성된 Spring MVC 를 기반으로 한다. 개요 레이아웃 프레임워크로 많이 사용하는 tiles 를 spring MVC 와 연동하는 것을 순서대로 적어본다. pom.xml pom.xml 파일에 tiles 설정과 관련한 라이브러리를 선언한다. 참고로 2012-07-11 에 Version: 3.0.1 이 릴리즈 되었다. 하지만 이 포스팅에서는 2.2.2 를 사용해보도록 한다. 1.63.1.1.RELEASE1.6.101.6.62.2.2 org.apache.tilestiles-extras${org.apache.tiles-version} servlet-context.xml 기존의 InternalResourceViewResolver 대신 TilesViewResolver 를 등록한다. ti.. 2013. 8. 13. 스프링(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.. 2013. 8. 6. [타임리프] From JSP to Thymeleaf 개요 웹 개발자와 퍼블리셔가 작업을 하면서 JSP 와 HTML 코드를 어떻게 관리해야 두번 작업 안하게 할까? 라는 고민에서 시작되었다. 보통 작업을 하면 HTML 관련 프로젝트는 퍼블리셔가 담당하고 이것을 개발자가 JSP 등의 웹 개발 언어로 개발하면서 두개의 프로젝트로 관리되어 작업을 해왔다. 그러면서 자연스럽게 웹개발자와 퍼블리셔가 프로젝트를 분리하지 않고 하나의 프로젝트에서 관리할 수 있는 방법은 없을까? 하는 생각이 들었다. 퍼블리셔 : 로컬에서 서버없이 화면을 제작/수정하고자 함웹개발자 : 서버를 통해 전달한 데이터를 포함한 온전한 화면의 개발 이쯤에 접한것이 바로 타임리프였다. 타임리프는 자바 라이브러리로 웹환경뿐만 아니라 서버없이도 동작하는 XML/XHTML/HTML5 템플릿 엔진이다. 타.. 2013. 7. 30. [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.. 2013. 7. 29. 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.. 2013. 7. 24. 이전 1 2 3 다음