Hi,
I have a sort of similar use case in my CAS 5, I need to use ${@environment.getProperty('mycompany.home.url')} in my casLoginView.html, and my application.yml is as follows:
mycompany.home:
And in my case it works. So I think the use of application.yml and casLoginView.html by you is Ok
===================================================
I think you can try the following:
- Try a simpler test using maybe <p th:text="#{home.welcome}">Welcome to our grocery store!</p> and in application.yml:
home.welcome: some_text_for_debugging_or_something_like_that_lol
- Try see if the location of your application.yml / casLoginView.html is wrong
application.yml should be in "src/main/resources/application.yml", and
casloginView.html should be in "src/main/resources/templates/casLoginView.html"
- It is common mistake to misspell the path name, so double check those. (modified the file to add invalid syntax so see if any error occurs can also check if the pathing is correct)
- Check you CAS version, which you don't specified. I suspect anything CAS version starting from CAS 5 should support the thymeleaf syntax, but at least I use thymelefa starting from CAS 5.1.x and don't have problem like yours
If all the above failed then report back, see if you can give more information so the group and help solve it.
Cheers!
- Andy