반응형
로컬 서버 구성 후
1. 설치된 Tomcat 경로의 web.xml 파일 내부
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
2. 크롬, 엣지 등 브라우저의 캐시.
> 앞전 localhost:8080 프로젝트의 캐시가 남아있는 경우.

3. mvc config 설정
/**
* Add Index Page
*/
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("forward:/index.jsp");
}
4. 인터셉터 리다이렉션 등
위 4가지가 대표적인 원인.
생각보다 브라우저 캐시의 경우를 생각하지 않은 사람들을 봄.

'Java & Spring' 카테고리의 다른 글
| Java 21 리뷰: Virtual Threads부터 Pattern Matching까지, 무엇이 달라졌나 (0) | 2025.09.14 |
|---|---|
| Jasypt (1) | 2024.10.17 |
| 과학기술정보통신부(과기정통부)에서 긴급으로 apache fileupload 및 tomcat 취약 버전 체크 (0) | 2024.04.16 |
| intellij / project structure 설정하기. (0) | 2023.11.07 |
| SLF4J: No SLF4J providers were found. SLF4J: Defaulting to no-operation (NOP) logger implementation. (0) | 2023.10.31 |
댓글