<security:intercept-url pattern="/admin/**" access="ROLE_ADMIN"/> <security:intercept-url pattern="/student/**" access="ROLE_STUDENT"/> <security:intercept-url pattern="/teacher/**" access="ROLE_TEACHER"/>
不可以重复,这样可以正常使用
<security:intercept-url pattern="/**" access="ROLE_ADMIN"/> <security:intercept-url pattern="/**" access="ROLE_STUDENT"/> <security:intercept-url pattern="/**" access="ROLE_TEACHER"/>
这样就会403