분류 전체보기(22)
-
[에러해결]Unsatisfied dependency expressed through field 'mapper'
에러내용 : Unsatisfied dependency expressed through field 'mapper' ~ 1. TestMapper.java 파일의 @Mapper 를 -> @Mapper("mapper") 로 수정! 2. TestServiceImpl 파일의 @Autowired 를 -> @Resource(name = "mapper") 로 수정하고 import ! 3. 마지막으로 context-mapper.xml에서 원래있던 sqlSession 부분은 모조리 주석처리하고, 원래있던 sqlSessionFactory 의 이름은 sqlSession 으로 변경함. +) 공식문서를 보고 20번째라인의 부분의 value="egovframework" 를 value="egovframework.rte.**.mappe..
2022.12.13 -
[에러해결]Cannot load JDBC driver class 'com.mariadb.jdbc.Driver'java.lang.ClassNotFoundException: com.mariadb.jdbc.Driver
Cannot load JDBC driver class 'com.mariadb.jdbc.Driver' java.lang.ClassNotFoundException: com.mariadb.jdbc.Driver https://ppowerppush.tistory.com/57 (위 링크 참고함) 에러해결 방법 : context-datasource.xml 파일의 com -> org 로 수정! 설명 : 에러에 써져있는 "mariadb.jdbc"가 적힌 파일을 찾아보니 context-datasource.xml 파일이 나왔다. 그래서 해당 context-datasource.xml 파일의 부분의 com을 (pom.xml 파일의 "mariadb.jdbc" dependency 에 맞춰서) org 로 수정해주니 해당 에러는 해결..
2022.12.06 -
[에러해결][org.springframework.web.servlet.PageNotFound] No mapping found for HTTP request with URI [/P1_BBS_2/css/egovframework/sample.css] in DispatcherServlet with name 'action'
아래 사진 참고해서 해결했다!ㅎㅎ :)
2022.12.06 -
[에러해결] 클래스 [org.springframework.web.context.ContextLoaderListener]의 인스턴스인 리스너에게 contextDestroyed 이벤트를 전송하는 중 예외 발생java.lang.IllegalStateException: BeanFactory not initialized or already close..
[에러내용] 심각: 클래스 [org.springframework.web.context.ContextLoaderListener]의 인스턴스인 리스너에게 contextDestroyed 이벤트를 전송하는 중 예외 발생 java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext [에러해결] : 7번째 줄의 sqlSession를 sqlSessionFactory로 변경. (수정전) (수정후)
2022.12.05