I'm trying to set a property, as a path to a file in my resources folder, in my application.yml
But Java treats the classpath prefix as part of the string.
I've tried multiple ways of getting this path into my program (obviously not all at once).
keytab-path: classpath:/resources/krb5.keytab
keytab-path: classpath:/krb5.keytab
keytab-path: classpath:krb5.keytab
keytab-path: classpath*krb5.keytab
I can assert the property is definitely injected into my code, but it just has an issue with treating 'classpath' as a literal part of the string.
I have success in my code by injecting sql files using the classpath:sql/foo.sql
with an @Sql
tag.
Is there a way application.yml can interpret a classpath?