2016/102 이클립스 Thymeleaf 플러그인 설치 이클립스 4.6.1 Neon 기준 Thymeleaf 플러그인 설치홈페이지 방문해서 직접 설치 가이드를 참고해도 된다.https://github.com/thymeleaf/thymeleaf-extras-eclipse-plugin 1. 설치상단메뉴 Help > Install New Software... > Work with 입력란에 http://www.thymeleaf.org/eclipse-plugin-update-site/ 입력 후 엔터 후 선택하여 설치 2. 설정HTML 파일 상단에 아래와 같이 입력프로젝트 마우스 오른쪽 버튼 클릭 > Thymeleaf > Add Thymeleaf Nature 선택이제 아래 사용법(영어)에 따라 코딩하면 된다.예) 3. Thymeleaf 사용법 URLhttp://www.t.. 2016. 10. 16. Spring 4 자바 기반 Thymeleaf 설정 Spring 4.3.3 기준 Thymeleaf 3.0.2 설정 1. 메이븐 Thymeleaf 의존성 라이브러리 추가 org.thymeleaf thymeleaf-spring4 3.0.2.RELEASE 2. 스프링에 Thymeleaf 빈 설정 @Autowired private ApplicationContext applicationContext; @Bean public SpringResourceTemplateResolver templateResolver(){ SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver(); templateResolver.setApplicationContext(this.applicatio.. 2016. 10. 16. 이전 1 다음