I dont know why the follow imports are not getting found in my project: Code:
import org.springframework.jdbc.core.SqlInOutParameter;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.object.StoredProcedure;
I have the folllowing in my pom.xml file
Code:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
But I have found that if I add the following it works but I dont see why I need to:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${springframework-version}</version>
</dependency>
If you want to work with Spring Jdbc packages you have to import the correct library:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
SqlInOutParameter
, SqlParameter
and StoredProcedure
require the spring-jdbc artifact.
It does not appear in the dependent artifacts for spring-context
. The artifact for spring-orm
does contain this dependency however. See here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With