目前工程用的前后端分离,但是前端访问后端如果没权限,就跳转到 user/login 这个方法,我想让她跳转到我自定义的方法 rentun 出 nutMap, 但是不懂怎么配置shiro.ini啊
目前的shiro.ini
[main]
nutzdao_realm = com.panport.raiis.nutz.shiro.realm.SimpleAuthorizingRealm
authc = org.nutz.integration.shiro.SimpleAuthenticationFilter
authc.loginUrl = /user/login
logout.redirectUrl= /user/login
cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
cacheManager.cacheManagerConfigFile=classpath:ehcache.xml
nutzdao_realm.cacheManager = $cacheManager
[urls]
/rs/* = anon
#/user/logout = logout
/user/error = anon
/user/login = anon
/user/profile/active/mail = anon