Parcourir la source

修改过滤顺序

shuzheng il y a 9 ans
Parent
commit
171096ecf7

+ 7 - 6
zheng-upms/zheng-upms-server/src/main/resources/applicationContext-shiro.xml

@@ -19,18 +19,19 @@
         </property>
         </property>
         <property name="filterChainDefinitions">
         <property name="filterChainDefinitions">
             <value>
             <value>
-                <!-- 不需要认证 -->
+                <!-- isAuthenticated -->
+                /manage/**=authc
+                <!-- isAuthenticated或RememberMe -->
+                /druid/**=user
+                <!-- logout -->
+                /sso/logout = logout
+                <!-- anon -->
                 / = anon
                 / = anon
                 /swagger-ui.html = anon
                 /swagger-ui.html = anon
                 /webjars/** = anon
                 /webjars/** = anon
                 /resources/** = anon
                 /resources/** = anon
                 /sso/** = anon
                 /sso/** = anon
                 /403 = anon
                 /403 = anon
-                /sso/logout = logout
-                <!-- isAuthenticated或RememberMe -->
-                /druid/**=user
-                <!-- isAuthenticated -->
-                /manage/**=authc
             </value>
             </value>
         </property>
         </property>
     </bean>
     </bean>