UnknownUnwrapTypeException: Cannot unwrap to requested type [javax.sql.DataSource]
问题 I know that this question has been answered before, but none of the responses seem to help me, since i am not using a datasource in my project. I a have a Maven project, integrated with Spring and Hibernate, connecting to a SQL Server 2014 database. This is my pom.xml, where you can see the versions: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0