middlemoon
Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: 본문
Develop/Springboot
Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException:
중대경 2022. 8. 19. 17:46원인)
에러사항은 다음과 같다. mybatis로 실행하여 db에 값을 불러오는 과정에 오류발생 !

해결)

mybatis로 실행하다보면 sql-mapping.xml 파일이 필요하다. 즉 불필요한 sql문을 줄여주기위한 하나의 집합체라고 생각하면되는 공간이다. 처음에 id를 onemeber 에서 철자가 빠졌기때문에 에러가 생겨났다.
오류를 내뱉는 곳에 분명 문제가 있으니 오류부터 꼼꼼히 길러보는 습관을 들이자 !
'Develop > Springboot' 카테고리의 다른 글
| Spring + Mybatis 연동예제1 (0) | 2022.08.22 |
|---|---|
| error404 :Tomcaterror/JSP is not found, not available (0) | 2022.08.21 |
| (예외오류)Version 1.8.0_261 of the JVM is not suitable for this product (0) | 2022.08.16 |
| [톰켓오류해결]Server Tomcat v9.0 Server at localhost failed to start. (0) | 2022.08.11 |
| Springboot 기능(Service,Repository,Autowired) (0) | 2022.04.09 |
Comments