spring 에러 : resource specification not allowed here for source level below 1.7
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 버전 변경