servlet-context.xml 파일에 아래와 같이 코드 추가하면 /resources/css/를 /css와 같이 사용 가능!!
<mvc:resources mapping="/resources/**" location="/resources/" />
- mapping : 매핑 URI 설정
- location : 정적 리소스 위치 설정
참조
더보기
https://pangtrue.tistory.com/143
[Spring MVC] 정적 자원 매핑 - <mvc:resouces> 태그
정적 자원 매핑 - 태그 maven으로 프로젝트를 진행할때 정적 자원은 /src/main/webapp/resources/ 아래에 위치시킨다. .jsp와 같은 뷰 파일은 /src/main/webapp/WEB-INF/views/ 아래에 위치하는데, 뷰에서..
pangtrue.tistory.com
[Spring MVC] Static Resources(정적 리소스) 설정 방법
[Spring MVC] Static Resources(정적 리소스) 설정 방법 스프링 MVC 웹 프로젝트는 정적 리소스를 두 가지 방법으로 설정할 수 있다. 스프링 XML 설정을 사용하는 방법과 WebMvcConfigurer 인터페이스를 사용하
xzio.tistory.com
'3. Back-end > 3-1. Spring MVC - 국비' 카테고리의 다른 글
Spring MVC - [ UriComponentsBuilder ] (0) | 2022.07.20 |
---|---|
Spring MVC - [ Ajax - @requestBody / @responseBody ] (0) | 2022.07.05 |
MyBatis - [ 쿼리문 where like ] (0) | 2022.06.29 |
Spring MVC - [ mapper : sql구문에 부등호 기호 사용 ] (0) | 2022.06.28 |
Spring MVC - [ 페이징 처리 ] (0) | 2022.06.28 |