50,530
社区成员
发帖
与我相关
我的任务
分享
<bean id="oAuth2AuthenticationFilter" class="com.zdxfinfo.systemBase.shiro.OAuth2AuthenticationFilter">
<property name="authcCodeParam" value="code"/>
<property name="failureUrl" value="/oauth2Failure.jsp"/>
</bean>
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
<property name="securityManager" ref="securityManager"/>
<property name="loginUrl" value="/unLogin"/>
<property name="successUrl" value="/successUrl"/>
<property name="filters">
<util:map>
<entry key="oauth2Authc" value-ref="oAuth2AuthenticationFilter"/>
</util:map>
</property>
<property name="filterChainDefinitions">
<value>
/swagger/**= anon
/api-docs/**= anon
/= anon
/v1.0/backgroundUser/insterBackgroundUser= anon
/login= anon
/oauth2-login= oauth2Authc
/logout= logout
/**= user
</value>
</property>
</bean>