java - How to extend Spring Boot's DataSourceAutoConfiguration -
I want to take advantage of the spring boot data source auto configuration. Although this does not specifically support all the features I am using, They are not currently being used: Do I Have Datasource Bean made and manually set those values? Or is there a better way to extend or wrap the autoconfiguration? For more information about I have solved it with I can also submit a PR to get the properties involved in the spring boot < / P> logValidationErrors .
logValidationErrors: True Max Edge: 1800000 # // 30 minutes Waste Age Extraction Maximum: True
log-validation auctions , etc., see:
BeanPostProcessor , similar to the suggestion of Dave Sirs:
@Override Public Object post processApplied before you (object Bean, string beanam) throws the beans exposition (if (bien instance of datasource) {datasource ds = (datasource) bean; ds.setLogValidationErrors (true); ds.setRe MoveAbandoned (right); ds.setMaxAge (1800000);} Return bean;}
Comments
Post a Comment