Bean Initialisation not failing with @Property annotation #10090
Unanswered
dnyaneshwar2023
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use
@Property
for my cron job.So currently the cron schedule gets executed when I provide value in application config for the property.
But if its not there cron does not get executed (I am guessing
@NotBlank
annotation is working. But I wan't to throw bean initialisation error instead of cron not getting executed.Code example:
Beta Was this translation helpful? Give feedback.
All reactions