I am using Spring Boot with Wicket and I would like to use Spring Boot's ability to read yaml application properties for configuration of my Wicket Web Application. I can get the configuration properties classes to work within Spring context, but when I use @SpringBean to inject them into a Wicket component, the bean get injected, but it is not populated with properties. What is the recommended way of accessing Spring Boot's properties from Wicket?
I am aware of this SO question, but the answers there talk about the use of @Value annotations, which does not help me.
I can autowire the configuration property bean at the application level and it is populated. I can also autowire ApplicationContext at the application level and then access it via the static Application.get(), which allows me to look up the bean using context.getBean(). However neither of those two solutions feels right to me.
Do NOT trust the eclipse debugger when looking at
@SpringBeaninjected proxies. Use getters to get the actual value.