<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:security="http://www.springframework.org/schema/security"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/security
                           http://www.springframework.org/schema/security/spring-security-3.2.xsd">

	<!-- 
    <security:global-method-security secured-annotations="enabled" />
     -->
    <security:http create-session="stateless">
        <!-- Restrict URLs based on role -->
        <security:intercept-url pattern="/user/create" access="IS_AUTHENTICATED_ANONYMOUSLY" />
        <security:intercept-url pattern="/**" access="ROLE_USER" />

		<security:http-basic/>

    </security:http>

	<bean id="encoder" class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder" />
	
    <security:authentication-manager>
        <security:authentication-provider user-service-ref="userDetailsServiceImpl" >
        	<security:password-encoder ref="encoder" />
        </security:authentication-provider>
    </security:authentication-manager>
    

</beans>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:security="http://www.springframework.org/schema/security"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/security
                           http://www.springframework.org/schema/security/spring-security-3.2.xsd">

	<!-- 
    <security:global-method-security secured-annotations="enabled" />
     -->
    <security:http create-session="stateless" realm="Task List">
        <!-- Restrict URLs based on role -->
        <security:intercept-url pattern="/user/create" access="IS_AUTHENTICATED_ANONYMOUSLY" />
        <security:intercept-url pattern="/**" access="ROLE_USER" />

		<security:http-basic/>

    </security:http>

	<bean id="encoder" class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder" />
	
    <security:authentication-manager>
        <security:authentication-provider user-service-ref="userDetailsServiceImpl" >
        	<security:password-encoder ref="encoder" />
        </security:authentication-provider>
    </security:authentication-manager>
    

</beans>
Change Spring Security realm from default value.
Change Spring Security realm from default value.
