[Spring Boot/Thymeleaf] Exception processing template
스프링 부트로 프로젝트 작업중에 파싱에러가 발생했다. ide 사용시에는 정상이었으나 운영배포 때문에 jar package 테스트를 위하여 cmd 창에서 java -jar 로 실행하니 에러가 발생하였다. 총 두가지 문제가 있었는데 결과적으로는 둘 다 경로 설정 문제였다. 1. An error happened during template parsing (template: "class path resource [templates//test.html]") 컨트롤러에서 html 리턴 시 절대경로를 입력하고자 /test 형태로 작성하였으나, 이로인해 중복으로 슬래시가 입력되었나 보다. * 해결방법 return new ModelAndView("test"); 해당 리턴 값에 슬래시를 삭제하였다. 아마 Thymeleaf..
프로그래밍/JSP/SPRING
2021. 6. 26. 23:38