You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PROP_UNKNOWN_PROPERTY warning in application.properties #332
Provide a way to supress or provide the new properties used by project.
Else the whole application.properties looks very messy with lots of warnings.
eg. : 'myproject.random.key' is an unknown property.(PROP_UNKNOWN_PROPERTY)
Note: spring properties are not showing this warning as they must be defined in Spring Boot Properties Metadata. So there must be some way to create our own project specific medata json for properties to avoid the "PROP_UNKOWN_PROPERTY" warning.
Isn't there a "quick fix" available when the cursor is placed on the underlined property key? The "quick fix" (hope it's showing up. Are using Eclipse or VSCode?) proposes to add the unknown property to additional metadata JSON file. Once the property is in that file the warning will be gone.
There is also a way to create your own boot properties by annotation specific type of Bean with a @ConfigurationProperties. You can read up on that here:
Closing the issue as I beleave there are already two different ways (as mentioned above) to explicitly create metadata for your properties so that the editor doesn't complain about them. If this doesn't work for you, please explain why and then we can re-open the ticket if it seems there's an improvement we need to make to this.
Activity
BoykoAlex commentedon Jul 25, 2019
Isn't there a "quick fix" available when the cursor is placed on the underlined property key? The "quick fix" (hope it's showing up. Are using Eclipse or VSCode?) proposes to add the unknown property to additional metadata JSON file. Once the property is in that file the warning will be gone.
kdvolder commentedon Jul 25, 2019
There is also a way to create your own boot properties by annotation specific type of Bean with a
@ConfigurationProperties. You can read up on that here:https://docs.spring.io/spring-boot/docs/current/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
kdvolder commentedon Jul 25, 2019
Closing the issue as I beleave there are already two different ways (as mentioned above) to explicitly create metadata for your properties so that the editor doesn't complain about them. If this doesn't work for you, please explain why and then we can re-open the ticket if it seems there's an improvement we need to make to this.