Skip to content
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

Issue with @ConfigurationProperties, @Validated and @NotNull #82

Open
ThanksForAllTheFish opened this issue Jul 27, 2017 · 0 comments
Open

Comments

@ThanksForAllTheFish
Copy link

Since Spring Boot 1.5, it is suggested to annotated configuration properties with @Validated. Unfortunately, it seems this is not possible to use @javax.validation.constraints.NotNull when spring-cloud-starter-kubernetes is in the classpath. As far as I can tell, only @NotNull (and @NotEmpty, @NotBlank and other validation annotations dependent on @NotNull) are affected

I have created a very small project to reproduce the issue: https://github.com/ThanksForAllTheFish/kube-cloud-sample

Quick workaround for the moment is to remove @Validated as it is not mandatory yet, but in the future this is going to change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant