Configuration of authentication and authorization in Spring Security

The following is Spring Security's configuration file to configure the system to use the user, password, and authorization information in memory

<security:authentication-manager>
    <security:authentication-provider>
        <security:user-service>
            <security:user name="user" password="{noop}user" authorities="ROLE_USER"/>
            <security:user name="admin" password="{noop}admin"authorities="ROLE_ADMIN"/>
        </security:user-service>
    </security:authentication-provider>
</security:authentication-manager>

Guess you like

Origin blog.csdn.net/y_bccl27/article/details/109900741