Spring Boot 정적 리소스 설정
2023. 7. 4. 13:21ㆍ웹개발/Spring Boot
728x90
spring:
web:
resources:
static-locations: classpath:/js, classpath:/css, classpath:/static
application.yml에 다음과 같이 경로들을 나열하면 해당프로젝트의 폴더 위치로 접근이 가능하다.
728x90
반응형
'웹개발 > Spring Boot' 카테고리의 다른 글
JAVA Enum Value로 Key 찾아오기 (0) | 2023.07.06 |
---|---|
Spring Boot Controller 에서 전체 파라메터 폼 클래스 유효성 검증 (0) | 2023.07.05 |
Spring Boot Validated 유효성 검증 그룹 설정 (0) | 2023.07.04 |
Spring Boot Security 사용자별 동시접속자 수 제어 (0) | 2023.06.30 |
Spring Boot + Thymeleaf Tag JAVA CUSTOM UTIL 사용 (0) | 2023.06.27 |