resource specification not allowed here for source level below 1.7
1.7 이상의 컴파일 환경임에도 1.7 이하의 버전이 환경설정에 적용되어 발생하는 에러
해결방법
1) pom.xml 파일 수정
1.7 이상 버전으로 수정
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>11.0.1</source>
<target>11.0.1</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
2) project 우클릭 > properties > build path > Java Build Path > Libraries 탭 > JRE1.6~1.7 버전 있으면 삭제 후 Add Library 클릭 > JRE Sysem Library 추가
3) project 우클릭 > properties > build path > Java Compiler > JDK 버전 변경
'Backend > 기타' 카테고리의 다른 글
Java compiler level does not match the version of the installed Java project facet. (0) | 2023.05.17 |
---|---|
cvc-id.3: a field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple (0) | 2023.05.17 |
Mybatis, Mybatis-spring 다운로드/의존성 추가 (0) | 2023.05.15 |
의존성 주입이란? (0) | 2023.05.15 |
pom.xml 파일 수정 자세한 설명 (0) | 2023.05.15 |