Whitelabel Error Page
해결 🔽
1. 어노테이션 잘 설정했는지 확인하기
2. 경로 잘 설정했는지 확인하기
예시>
html 파일명 main.html이면
컨트롤러 메소드
@GetMapping("/main")
public String main{
return "main";
}
Cannot find template location: classpath:/templates/ (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf.check-template-location=false)
해결 🔽
template 하위에 파일 생성하기
Web server failed to start. Port 8080 was already in use.
해결 🔽
netstat -an
엄청나게 길게 나옴
or
netstat -ano | findstr "포트번호"
*ano : all numerical own (시스템의 모든 네트워크 연결을 숫자로 표시하고, 각 연결과 연결된 프로세스의 PID를 함께 보여 줌)
taskkill /f / pid pid번호
*PID : 포트에서 실행 중인 프로세스 또는 서비스의 프로세스 ID
template might not exist or might not be accessible by any of the configured Template Resolvers
해결 🔽
@GetMapping 부분 return 잘못되지 않았는지 확인하기
(main.html 파일을 resources 하위에 두고산 templates 하위에 둔 줄 알고 한참 헤맴...)