1 Star 0 Fork 121

zengshuai/JFinalShiroPlugin

forked from 李飞/JFinalShiroPlugin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
shiro.ini 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
lifei_osc 提交于 2015-08-03 04:15 . 添加实际例子代码
[main]
#sessionId\u76f8\u5173\u8bbe\u5b9a
sessionIdCookie=org.apache.shiro.web.servlet.SimpleCookie
sessionIdCookie.name=wellbole
#sessionIdCookie.domain=localhost:8080
sessionIdCookie.path=/
sessionIdCookie.maxAge=1800
sessionIdCookie.httpOnly=true
#\u5bc6\u7801\u6821\u9a8c\u65b9\u6cd5
passwordService = org.apache.shiro.authc.credential.DefaultPasswordService
passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher
passwordMatcher.passwordService = $passwordService
#realm
shiroDbRealm = com.wellbole.web.core.shiro.ShiroDbRealm
shiroDbRealm.credentialsMatcher = $passwordMatcher
securityManager.realms = $shiroDbRealm
#session
#sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
#sessionDAO.activeSessionsCacheName = shiro-activeSessionCache
#sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
#sessionManager.sessionDAO = $sessionDAO
#\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u6beb\u79d2\uff0c1\u79d2=1000\u6beb\u79d2(30\u5206\u949f)
#sessionManager.globalSessionTimeout = 1800000
#securityManager.sessionManager = $sessionManager
#\u7b56\u7565
authcStrategy = com.wellbole.web.core.shiro.AnySuccessfulStrategy
securityManager.authenticator.authenticationStrategy = $authcStrategy
#cache
cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
securityManager.cacheManager = $cacheManager
#[urls]
#/account/login = anon
#/account/img = anon
#/account/logout = authc
#/index = authc
#/index/** = authc
#/sys/** = authc
#/app/** = authc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/izengshuai/jfinalshiroplugin.git
git@gitee.com:izengshuai/jfinalshiroplugin.git
izengshuai
jfinalshiroplugin
JFinalShiroPlugin
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385