是我對數據源org.flywaydb.core.api.FlywayException:錯誤而確定的數據庫產品名稱下方
<bean id="datasource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/env/jdbc/intdb" />
</bean>
和遷徙路線豆配置JNDI查找是
<bean id="flyway" class="org.flywaydb.core.Flyway" init-method="migrate">
<property name="dataSource" ref="datasource" />
</bean>
下面我列舉越來越異常,但如果我替換JNDI查找與豆的所有屬性,它工作正常,
引起:org.flywaydb.core.api.FlywayEx ception:錯誤而 在org.flywaydb.core.internal.dbsupport.DbSupportFactory.getDatabaseProductName(DbSupportFactory.java:139) 在org.flywaydb.core.internal.dbsupport.DbSupportFactory.createDbSupport(DbSupportFactory.java確定數據庫產品名稱 :59) at org.flywaydb.core.Flyway.execute(Flyway.java:1147) at org.flywaydb.core.Flyway.migrate(Flyway.java:811) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native法) 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java: 597) at org.sp ringframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522) 在org.springframework.beans.factory。在oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) 不支持的功能 在:support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ...... 26多個 造成的:值java.sql.SQLException oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269) at oracle.jdbc.dbaccess.DBError.th rowUnsupportedFeatureSqlException(DBError.java:689) 在oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4442) 在org.flywaydb.core.internal.dbsupport.DbSupportFactory.getDatabaseProductName(DbSupportFactory.java:134)