PoolDataSource
is an interface and the getPassword()
method has been deprecated. It appears to be a default method that isn't implemented by PoolDataSourceImpl
. The default method has been implemented in PoolDataSource
to throw a NoSuchMethodError
:
java.lang.NoSuchMethodError: this method is deprecated
at oracle.ucp.jdbc.PoolDataSource.getPassword(PoolDataSource.java:462)
at org.springframework.boot.jdbc.DataSourceBuilder$OraclePoolDataSourceProperties.lambda$7(DataSourceBuilder.java:655)
at org.springframework.boot.jdbc.DataSourceBuilder$MappedDataSourceProperty.get(DataSourceBuilder.java:474)
at org.springframework.boot.jdbc.DataSourceBuilder$MappedDataSourceProperties.get(DataSourceBuilder.java:363)
at org.springframework.boot.jdbc.DataSourceBuilder.build(DataSourceBuilder.java:178)
We need to update DataSourceBuilder
to behave as if the method's not there at all.