gavlyukovskiy/spring-boot-data-source-decorator

Add implementation for unwrap() to com.github.gavlyukovskiy.boot.jdbc.decorator.DecoratedDataSource

Closed this issue · 1 comments

It would be nice to be able to use the DataSourceBuilder.derivedFrom(decoratedDataSource) builder method to be able to customize jdbcUser and jdbcPassword for connecting to a different data source.

At the moment it crashes when calling the DataSourceBuilder.build() method, as DecoratedDataSource does not declare any public constructors.

Might not be so trivial to implement, I found an alternative solution for my problem.