Arun Avanathan
Arun Avanathan

Reputation: 1170

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)?

Upvotes: 8

Views: 11181

Answers (1)

Todd
Todd

Reputation: 31710

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.

Upvotes: 8

Related Questions