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
Obfuscation, inclue, exlude properties couldn't set from configuration #445
Comments
Can you show your |
|
As I assumed, the problem is not with logbook but how spring represents lists in flat properties files. Either you use yaml or follow the suggestion in #282. |
Can you try with the below format (without brackets) : logbook.exclude=/demo/monitor/,/v2/api-docs,/configuration/ui,/swagger-resources,/configuration/security,/swagger-ui.html,/webjars/ It's working for me |
I believe that depends on the Spring version. |
I had to do add below to my application.properties
I am using
Tip: Use |
logbook-spring-boot-starter doesn't work correct due to some properties doesn't set.
Description
Obfuscate, inclue, exlude properties couldn't set from configuration due to LogbookProperties hasn't any setter methods for these properties. So LogbookAutoConfiguration gets empty configuration from LogbookProperties for obfuscate, include, exclude
Possible Fix
Add setter methods for obfuscate, include, exclude in LogbookProperties .
Context
Couldn't set logbook.obfuscate.headers, logbook.obfuscate.parameters, logbook.include, logbook.exclude from application.properties in Spring Boot project. Manually added logbook bean configured with java api.
Your Environment
The text was updated successfully, but these errors were encountered: