Wie einrichten datasource mit Feder für HikariCP?

Hallo, ich versuche, HikariCP mit Feder für Verbindungs-pool. Ich bin mit jdbcTempLate und JdbcdaoSupport.

Dies ist mein spring-Konfiguration-Datei für die Datenquelle:

<bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource">
    <property name="dataSourceClassName" value="oracle.jdbc.driver.OracleDriver"/>
    <property name="dataSource.url" value="jdbc:oracle:thin:@localhost:1521:XE"/>
    <property name="dataSource.user" value="username"/>
    <property name="dataSource.password" value="password"/>
</bean>

Aber leider die folgende Fehlermeldung generiert:

Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.zaxxer.hikari.HikariDataSource]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.zaxxer.hikari.HikariDataSource.<init>()

Kann jemand mir bitte sagen, wie dieses Problem zu lösen?

InformationsquelleAutor der Frage Abhinab Kanrar | 2014-04-19

Schreibe einen Kommentar