Good day!
I am trying to convert a project to annotation-based/Java Configuration based from an XML-based project. Is there a way to turn the XML configuration below to Java Configuration?
<beans:bean id="jwtAuthenticationFilter" class="foo.bar.security.JwtAuthenticationFilter">
<beans:property name="authenticationManager" ref="authenticationManager"/>
<beans:property name="authenticationSuccessHandler" ref="jwtAuthenticationSuccessHandler" />
</beans:bean>
<authentication-manager alias="authenticationManager">
<authentication-provider ref="jwtAuthenticationProvider" />
</authentication-manager>
This is by the way, a snippet from the security-context.xml that I use. I am trying to look for the solution here but the documentation for @Bean
does not have it. I don't know what to do with the properties of the bean. And also for the authentication-manager
node. Hope someone can help me.
Thanks in advance!