Exception in thread "main" org.springframework.jdbc.UncategorizedSQLException:Hibernate Operation:cannot Open Connection Uncategorized SQLException for SQL [???]; SQL state [NULL]; Error code [0]; Cannot load JDBC driver class ' com.mysql.jdbc.Driver '; Nested exception is Org.apache.commons.dbcp.SQLNestedException:Cannot load JDBC driver class ' Com.mysql.jdbc.Driver '
This is because the spring managed driver for the SSH framework or the SSM framework is not written
<bean id= "DataSource" class= "Org.apache.commons.dbcp.BasicDataSource" >
<property name= "Driverclassname"
Value= "Com.microsoft.sqlserver.jdbc.SQLServerDriver" >
</property>
<property name= "url"
Value= "JDBC:SQLSERVER://LOCALHOST;DATABASENAME=XSXKWZB" ></property>
<property name= "username" value= "sa" ></property>
<property name= "Password" value= "123456" ></property>
</bean>
Cannot open connection; Uncategorized SQLException for SQL [???]; SQL State