Cannot convert value of type [java.lang.String] to required type [javax.sql.Dat

The string configured in your datasource cannot be converted into a javax.sql.DataSource object, so the SessionFactory cannot be completed, and the datasource configuration must be wrong. Check the datasource-related configuration in the [/WEB-INF/applicationContext.xml] file.


<property name="dataSource" value="dataSource">The
configuration is wrong. Spring will inject it as a string, and report a type mismatch exception. Change it to
<property name="dataSource" ref="dataSource"/>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326378239&siteId=291194637