개발/SPRING BOOT
spring boot static 말고 다른 경로 설정
spring boot / viewResolver / static / template / addResourceHandlers / ResourceHandlerRegistry spring boot view file 경로 설정 을 하고싶었다. static 말고 다른 경로에 넣고싶었다. index 요청을 받았을 때, index.html 파일을 보여주도록 하였다. resources > static > index.html 파일을 만들어주면 화면을 잘 보여준다. 근데 파일을 templates 에 넣으면? 다른 내가 만든 디렉토리에 넣으면? 파일을 찾지 못하고 404 에러가 발생한다. spring boot 는 기본적으로 static 만 보는건가? 어느 경로에 있는걸 기본 값으로 가지고 있을까? 찾아보니, 다음과 같은 부..
2021. 8. 6. 00:00
최근댓글