org.springframework.web.context.support.ServletContextResource.getURL()

throws FileNotFoundException, because

jakarta.servlet.ServletContext.getResource(String)

returns null. Therefore

org.springframework.web.servlet.resource.PathResourceResolver.getResource(String, Resource)

does not log a warning as intended.

Comment From: wilkinsona

It's only code within the org.springframework.boot package space that is maintained here. org.springframework.web is part of Spring Framework.

Comment From: matthiaskraaz

Thank you for pointing me into the right direction.