spring jdbc - The type org.springframework.dao.DataAccessException cannot be resolved
프로그래밍/Spring 오류코드 2014. 10. 10. 17:31728x90
Error: The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files
해결법: RowMapper 선언할 때 spring-jdbc.jar파일만 import할 경우 하위 method인 mapRow 선언시 에러 발생 . spring-tx.jar가 추가로 필요함
메이븐에 추가
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>4.1.1.RELEASE</version>
</dependency>
'프로그래밍 > Spring 오류코드' 카테고리의 다른 글
Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 의 maven 오류 (0) | 2014.10.16 |
---|