본문 바로가기

Study/SPRING32

Spring 에러 - No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 문제 : 메이븐 install 혹은 배포 시 발생하는 에러로 자바 실행 도구에 문제가 생긴것 해결 방법 : 아래 순서대로 자바 실행도구가 기본적으로 JRE로 연결되어 있는경우 JDK로 변경해준다. Window > Preferences > Java > Installed JREs > Search… 클릭 > JDK 폴더 선택 > JDK 가 보이면 JDK 선택 참조1 : https://mainia.tistory.com/5629 참조2 : https://stackoverflow.com/questions/19655184/no-compiler-is-provided-in-this-environment-perhaps-you-are-running-on-a-jre-ra 2020. 8. 24.
Spring 에러 - maven dependency problem 문제 : maven을 사용하는 프로젝트의 maven repository에 dependency가 제대로 다운로드 되지 않거나 없을 때 발생 해결 방법 1 : C:\Users\{유저명}\.m2 폴더를 삭제 후 이클립스 재실행 해결 방법 2 : 프로젝트 우클릭 > Maven > Update Project 클릭 해결 방법 3 : 상단 project 메뉴 > Clean… > 해당 프로젝트 선택(혹은 전체 선택) > OK 클릭 해결 방법 4 (외부 repository가 있을경우) : 상단 Window > Preferences > Maven > User Settings > User Settings 에 경로 선택 > Update Sttings 클릭 마지막으로, 프로젝트에는 문제가 없는데 이클립스 때문에 에러가 뜨는 경.. 2020. 8. 10.
Spring 에러 - Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource mapper.xml을 찾지못하는 오류, 아래처럼 property value의 경로 중 classpath뒤에 *를 붙여준다. (읭? 수정했는데도 안된다?) 계속 안되길래 뭐가 문젠가 봤더니 /(슬래쉬) 하나를 빼먹음… 오타조심... 2020. 2. 8.
Spring 에러 - resource specification not allowed here for source level below 1.7 ~ 에러 내용 : 1.7 이상의 컴파일 환경을 사용하고 있음에도 1.7 이하의 버전을 환경설정에 사용중이기 때문에 발생하는 문제 해결 방법 : 아래처럼 pom.xml 파일을 수정 후 Update Maven 실행. org.apache.maven.plugins maven-compiler-plugin 2.5.1 1.6 -> 1.8로 수정 1.6 -> 1.8로 수정 -Xlint:all true true 2020. 2. 8.
Spring 에러 - Maven에서 json-lib 추가 시 Missing artifact net.sf.json-lib:json-lib:jar:2.4 아래의 문장을 추가한다. jdk15 2020. 2. 8.
Spring 에러 - java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password' 해결 방법 : (mysql 최신버전(8버전 이상)에서 오류 발생) 아래와 같이 mysql 콘솔창에 입력한다. alter user 'username'@'ip' identified with mysql_native_password by 'password'; username은 root, ip는 루프백 ip, password에는 작은 따옴표를 포함한 데이터베이스 비밀번호를 써준다. 2020. 2. 8.
Spring 에러 - the server time zone value is unrecognized or represents 해결 방법 : root-context의 드라이버 커넥션 뒤에 serverTimezone 옵션을 아래와같이 추가해준다. jdbc:mysql://localhost/abc?serverTimezone=UTC 2020. 2. 8.
Spring 에러 - <annotation-driven> 에러 해결 방법 : c:\사용자 밑의 .m2 폴더를 지운 후 sts를 다시 실행한다. 2020. 2. 8.
Spring 에러 - SqlSession cannot be resolved to a type & SqlSessionFactory cannot be resolved to a type & The import org.apache.ibatis.session.SqlSessionFactory cannot be resolved 에러 내용 : 해당 에러의 경우 보통 maven 업데이트를 하면 해결이 되지만, 해결이 안되는 경우 maven에 추가한 라이브러리들을 일일히 까봐야 한다. 아래는 오류가 발생했던 라이브러리 //수정 org.mybatis mybatis 3.4.1 -> 3.2.8로 변경하니 에러 사라짐 위의 라이브러리를 바꿔주니 아래와 같은 에러 발생 java.lang.NoClassDefFoundError: org/apache/ibatis/cursor/Cursor 추가된 ibatis와 버전이 맞지 않아 발생하는 오류, 아래의 ibatis 버전을 바꾸거나 추가된 ibatis를 확인해보자. //추가 org.apache.ibatis ibatis-core 3.0 2020. 2. 8.