[ERROR] SpringBoot

aseol·2023년 10월 11일
0
post-thumbnail

Whitelabel


Whitelabel Error Page

해결 🔽
1. 어노테이션 잘 설정했는지 확인하기
2. 경로 잘 설정했는지 확인하기

예시>

html 파일명 main.html이면
컨트롤러 메소드 

@GetMapping("/main")
	public String main{
	return "main"; 
}

template

Cannot find template location: classpath:/templates/ (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf.check-template-location=false)

해결 🔽
template 하위에 파일 생성하기

port 충돌


Web server failed to start. Port 8080 was already in use.

해결 🔽

  • step1 : 찾기

    netstat -an

엄청나게 길게 나옴

or

netstat -ano | findstr "포트번호"
*ano : all numerical own (시스템의 모든 네트워크 연결을 숫자로 표시하고, 각 연결과 연결된 프로세스의 PID를 함께 보여 줌)

  • step 2 : 죽이기

    taskkill /f / pid pid번호
    *PID : 포트에서 실행 중인 프로세스 또는 서비스의 프로세스 ID

might not exist or might not be accessible

template might not exist or might not be accessible by any of the configured Template Resolvers

해결 🔽
@GetMapping 부분 return 잘못되지 않았는지 확인하기
(main.html 파일을 resources 하위에 두고산 templates 하위에 둔 줄 알고 한참 헤맴...)

0개의 댓글

관련 채용 정보