Which is the properly way to translate this bean:
<bean id="velocityEngine" class="org.springframework.security.saml.util.VelocityFactory" factory-method="getEngine"/>
from XML to Java-Config (note the factory-method)?
Is the following solution right?
@Bean
public VelocityEngine veloctyEngine() {
return VelocityFactory.getEngine();
}
Is there a better implementation according to the Spring-philosophy?
Cheers, V.
The way you are doing it seems right.
Check out this blog post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With