Thymeleaf(2)
-
Spring boot - Thymeleaf image 경로 설정
spring boot로 서버를 만든 후에 첫 화면에 이미지를 삽입하려고 했다. 근데 경로 오류인지 계속 사진이 안 나왔다. 구글링의 힘으로 해결했다. sample.jpg 파일을 화면에 띄울 것이다. 경로 설정은 static부터 시작한다. 그래서 img/sample.jpg로 하면된다.
2020.12.08 -
spring boot - Thymeleaf란?
spring boot를 설정해서 프로젝트를 만드는데 Thymeleaf라는 게 뭔지 궁금해졌다. Thymeleaf는 웹 및 독립 실행 형 환경을 위한 최신 서버 측 Java 템플릿 엔진이다. spring framework과 같이 지원하는게 많아서 웹개발에 많이 쓰인다고 한다. www.thymeleaf.org/ Thymeleaf Integrations galore Eclipse, IntelliJ IDEA, Spring, Play, even the up-and-coming Model-View-Controller API for Java EE 8. Write Thymeleaf in your favourite tools, using your favourite web-development framework. Chec..
2020.12.02