-
[STS 4] 프로젝트에 에러 빨간 느낌표 해결 , cannot be resolved to a type 해결 방법개발 공부/Spring 2022. 3. 18. 11:09반응형
실행은 되는데 이렇게 프로젝트에 에러 빨간 느낌표가 떠있어서 신경쓰였다
이렇게 프로젝트 에러,
갑자기 되던게 빨간 줄 뜨면서 나오는 에러
- The constructor ... refers to the missing type String 에러
- ... cannot be resolved to a type에러
다 해결 가능
build path에서 maven Dependencie도 빨간 느낌표 에러가 떠있었다
해당 프로젝트 마우스 우측클릭 -> properties -> project Facets
여기서 java 버전과 아래 설명하는 버전을 맞춰준다
java Build Path 에서 jre system library 를 더블클릭하거나 한번 클릭 후 Edit을 누른다
위와 같이 나오면 Execution environment 를 위에서 project Facets 의 java버전과 맞춰준다
그러면 해결 완료!
반응형'개발 공부 > Spring' 카테고리의 다른 글
STS lombok 적용 안될 때 (0) 2022.03.29 마우스 우측클릭 context menu function에서 요소 id 받기 (0) 2022.03.21 a jni error has occurred please check your installation and try again 오류 해결법 (0) 2022.03.18 Spring Boot Thymeleaf 외부 로컬 이미지 출력하기 , 프로젝트 경로에 파일 업로드 (0) 2022.03.17 Spring layout form submit 안될 때 해결 법 (0) 2022.03.14