-
Notifications
You must be signed in to change notification settings - Fork 41k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore unbindable DataSource properties #43988
Comments
That matches up with these exclusions: spring-boot/spring-boot-project/spring-boot-autoconfigure/build.gradle Lines 278 to 285 in 6fcbf14
Hopefully we should be able to remove them once the ignored properties are in place. |
I've played around with that here: https://github.com/mhalbritter/spring-boot/tree/mh/43988-review-configurationproperties-annotated-bean-methods-for-ignored-properties I've added all the Hikari properties to the Antora creates a row for every hikari property if the hikari prefix is removed from For the description: I've copied the JavaDoc description from |
Sorry, I was probably overly optimistic about being able to get rid of those exclusions. For this issue, I think we should focus on ignoring the properties that it does not make sense to expose in the metadata. We can address the descriptions separately if we decide we want to tackle that too. The properties you've ignored look good to me. I wondered about keeping the following:
However, I don't think it's necessary as they all have equivalent I also noticed that we have a couple of groups in the metadata that don't make sense:
There are no properties in either of these groups. This looks like a bug in the annotation processor to me as I don't think it should create an empty group. We can tackle that in a separate issue. |
// Edit: Ah nvm, i misread the code and the JavaDoc of the superclass class clarifies that it doesn't apply for Thanks Andy. We have a |
I've now added exclusions for all unbindable properties for dbcp2, hikari, oracleucp and tomcat. All properties from |
As we now have a way to ignore properties, we should review the
@ConfigurationProperties
annotated@Bean
methods if we want to ignore properties.Here are the prefixes I found which come from a
@ConfigurationProperties
annotated method:spring.datasource.dbcp2
spring.datasource.hikari
spring.datasource.oracleucp
spring.datasource.tomcat
spring.groovy.template.configuration
The text was updated successfully, but these errors were encountered: