Where is Spring Boot's ResourceNotFoundException?
Where is Spring Boot's ResourceNotFoundException?
We used to have org.springframework.boot.context.config.ResourceNotFoundException in Spring Boot 1.5.4. Where is this in Spring Boot 2.0 (2.0.4.RELEASE)?
org.springframework.boot.context.config.ResourceNotFoundException
(2.0.4.RELEASE)
1 Answer
1
It looks like that class was deleted for Spring Boot 2.0.0.RC1, according to this diff. Judging from that diff, they expect you to use different exceptions for this namely InvalidConfigurationPropertyValueException. I suspect this change was made to use more explicit exceptions to trigger more accurate Failure Analyzers.
Thanks. Looks like that is the case.
– Arun Avanathan
Aug 31 at 20:12
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Removed my answer; I tried using a new version of Spring Boot and couldn't find it either. Looks like @Todd found the reason.
– John Humphreys - w00te
Aug 31 at 20:10