본문 바로가기

Study/SPRING32

Spring 에러 - jsp ->controller 데이터 전송 시 한글 인코딩이 깨지는 경우 문제 : 데이터 전송 시 인코딩이 깨지는 문제, 중복 인코딩일 가능성도 있음 해결 방법 : Spring Setting 중 web.xml의 filter-mapping 추가, filter 첫번째 element(붉은부분) encoding을 encodingfilter로 수정 encodingFilter org.srpingframework.web.filter.CharacterEncodingFilter encoding UTF-8 encodingFilter /* 2020. 8. 24.
Spring 에러 - JSON parse error: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token; 문제 : jsp에서 보낸 ajax JSON OBJECT 데이터를 controller에서 받을 때 타입이 잘 못 되었을 경우 나타나는 에러, JACKSON 라이브러리가 어떤 타입으로 받아야 할 지 모를경우 발생 해결 방법 : 타입을 맞춰주면 됨(내 경우엔 List를 제거) 참조 : https://okky.kr/article/332632 2020. 8. 24.
Spring 에러 - cvc-elt.1.a cannot find the declaration of element 'project' 문제 : pom.xml의 schemaLocation 설정이 잘못되었다는 에러 해결 방법 : 다르게(기존이랑 다른 문장을) 썼다가 원래대로 되돌리면 사라짐...(뭐지) 2020. 8. 24.
Spring 에러 - class 'org.springframework.jdbc.datasource.drivermanagerdatasource' not found ~ 문제 : DB 연결 설정 dataSource Bean에서 class를 찾지 못해 발생하는 문제 해결 방법 : spring-jdbc 라이브러리를 추가 https://mvnrepository.com/artifact/org.springframework/spring-jdbc 참조 : https://nayalnal.tistory.com/20 2020. 8. 24.
Spring 에러 - Maven Update 후 프로젝트 자바 버전이 바뀌는 현상 문제 : jdk 1.8을 사용하기 위해 Build path에서 1.8로 변경 후 Maven Update를 하면 다시 1.6으로 바뀌는 문제가 발생 해결 방법 : 아래 방법대로 진행 1. pom.xml의 java-version을 원하는 버전으로 변경 2. 마찬가지로 pom.xml의 plugin configuration source와 target을 원하는 버전으로 변경 2020. 8. 24.
Spring 에러 - Cannot change version of project facet Dynamic Web Module to ~ 문제 : 프로젝트 우클릭 > Properties > Project Facets > Dynamic Web Module 을 수정할 수 없고 나타나는 에러 해결 방법 : 프로젝트 경로 > .settings > org.eclipse.wst.common.project.facet.core.xml 의 jst.web 항목의 버전을 원하는 버전으로 수정 후 maven update 참조 : https://templar.tistory.com/42 2020. 8. 24.
Spring 에러 - failed to read artifact descriptor for javax servlet servlet api jar 2.5org ~ 문제 : maven update, remove 후 convert, project clean 후에도 maven을 제대로 인식하지 못하는 문제 해결 방법 : settings.xml이 제대로 지정되어 있지 않거나 settings.xml이 없어서 나타나는 에러, 아래 방법대로 진행 C:\Users/{사용자명}/.m2/settings.xml 존재 확인 있으면 eclipse > window > Preferences > Maven > User Settings > User Settings에 settings.xml 경로 삽입 없으면 아래 코드로 settings.xml 생성 후 2번처럼 settings.xml이 존재하는 경로를 User Settings에 삽입 eclipse 재시작 후 Project > Clean maven.. 2020. 8. 24.
Spring 에러 - org.springframework.web.context.support.WebApplicationObjectSupport. 문제 : Maven Update 시 maven 라이브러리 경로가 삭제되는 현상때문에 발생하는 문제 해결 방법 : 아래 순서대로 경로를 다시 설정해주자. 프로젝트 우클릭 > Properties > Deployment Assembly > Add 클릭 > Java Build path Entries > Maven Dependencies 클릭 > Apply 참조 : http://myblog.opendocs.co.kr/archives/1657 2020. 8. 24.
Spring 에러 - Description Resource Path Location Type Failed to read artifact descriptor for 에러 내용 : Description Resource Path Location Type Failed to read artifact descriptor for egovframework.rte:egovframework.rte.psl.dataaccess:jar:3.8.0 org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for egovframework.rte:egovframework.rte.psl.dataaccess:jar:3.8.0 at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArti.. 2020. 8. 24.