If I write a test that loads a template under src/main/resources/templates it works fine. If I then create a template under src/test/resources/templates the test then fails as the template loader switches to looking there and only there. It's useful to be able to have a test template to check the behaviour of any custom Freemarker settings.
Ideally it would load from all templates resources found on the classpath, not just one.
Project to reproduce the problem (Spring Boot 2.4.0-M2):
https://github.com/halfninja/spring-ftl-bug-repro
Renaming src/test/resources/templates causes the test to pass.