When AOT is processing a @PropertySource it should automatically infer any file that's loaded from the classpath. Right now it doesn't so and a custom hint is necessary if the target of the annotation isn't covered already.