I would like to use Spring with Java configuration, but almost all examples are written in XML, and I do not know how to translate them into Java. Take a look at these examples from Spring Security 3 :
<http auto-config='true'> <intercept-url pattern="/**" access="ROLE_USER" /> </http> <authentication-manager> <authentication-provider> <user-service> <user name="jimi" password="jimispassword" authorities="ROLE_USER, ROLE_ADMIN" /> <user name="bob" password="bobspassword" authorities="ROLE_USER" /> </user-service> </authentication-provider> </authentication-manager> <password-encoder hash="sha"> <salt-source user-property="username"/> </password-encoder>
How can this be translated into Java? Or, in general, how can I translate Spring XML config to Java? The Spring section has a small section on Java, but it is not so useful.
java spring xml configuration
deamon
source share