Boot
-
[Spring Boot] Thymeleaf 템플릿 캐시 설정Java/Spring Framework 2016. 12. 24. 13:43
스프링부트의 Thymeleaf 템플릿 결과는 캐싱하는 것이 디폴트 값이다.즉, 개발할 때 Thymeleaf를 수정하고 브라우저를 새로고침하면 바로 반영이 되지 않는다.따라서 개발을 할 때에는 false로 해 주는 것이 재시작 없이 새로고침만으로 반영되게 하는 것이 편하다. application.yml spring: thymeleaf: cache: false application.properties spring.thymeleaf.cache=false
-
org.apache.tomcat.websocket.WsWebSocketContainer cannot be cast to io.undertow.websockets.jsr.ServerWebSocketContainerJava/Spring Framework 2016. 7. 25. 23:02
스프링부트책으로 따라하던 중 REST API 서버 실행시 에러가 났다. Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.ClassCastException: org.apache.tomcat.websocket.WsWebSocketContainer cannot be cast to io.undertow.websockets.jsr.ServerWebSocketContainer 구글링을 해보니 2가지 정도 방법이 있다. 1) pom.xml에서 undertow 제거 기본 maven 프로젝트 생성시 추가..