Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 티스토리챌린지
- spring
- IntelliJ
- group by
- oracle
- 추상클래스
- 차이점
- analytics4
- 호이스팅
- JPA
- Javascript
- 자바
- mssql
- 인터페이스
- rsync
- Linux
- java
- 트랜잭션
- MongoDB
- MariaDB
- 명령어
- DBMS
- Exception
- SQL
- PostgreSQL
- mysql
- 오블완
- 리눅스
- docker
- git
Archives
- Today
- Total
hanker
Spring - Thymeleaf 경로 설정 (templates) 본문
반응형
application.properties
spring.thymeleaf.prefix=classpath:templates/
spring.thymeleaf.suffix=.html
작성 후
/resources/templates/* 파일을 바라보기 시작한다.
Controller에서 코드를 작성 후 실행을 하면 /resources/templates/index.html 을 확인할 수 있다.
단, Spring boot로 프로젝트는 자동으로 resources/template 을 바라보지만
컨트롤러에서 Mapping URL을 지정해주지 않으면 resources/static 경로에있는 정적파일을 찾게 된다.
반응형
'SPRING' 카테고리의 다른 글
Spring - Security Static 경로 인증 무시(403 Error) (0) | 2021.05.09 |
---|---|
Spring boot - HTML 입력값 검사 ( Valid example ) (0) | 2021.04.30 |
Spring boot - Log 사용 (0) | 2021.04.26 |
Spring - local image 가져오기 (0) | 2021.04.20 |
spring boot(java) - 스케쥴러(scheduler) 작업 중지시키기 (2) - quartz (1) | 2021.04.12 |