Spring/오류2 [Spring] Log4j cannot be resolved to a type 에러 어노테이션으로 Log4j를 사용할 때 제목과 같은 에러 발생 해결 pom.xml에서 log4j dependency에서 runtime을 주석처리해주면 된다. log4j log4j 1.2.15 javax.mail mail javax.jms jms com.sun.jdmk jmxtools com.sun.jmx jmxri 2023. 7. 27. [Spring Legacy Project] Maven 업데이트 시 자바버전이 변경되는 현상 pom.xml을 변경하고 maven update 시 프로젝트 자바 버전이 1.6으로 변경되는 현상 pom.xml 내 properteis 태그 내 java-version을 1.8(해당 자바버전으로)로 수정 1.8 3.1.1.RELEASE 1.6.10 1.6.6 그리고 build 태그 내 org.apache.maven.pugins의 source와 target 버전 또한 고쳐야 함. org.apache.maven.plugins maven-compiler-plugin 2.5.1 1.8 1.8 -Xlint:all true true 이렇게 pom.xml 수정 후 maven update 하게 되면 오류 사라짐. 2023. 7. 24. 이전 1 다음