简体   繁体   English

apache shiro实现

[英]apache shiro Implementatation

I have knowledge of spring jsf and hibernate . 我对spring jsfhibernate有所了解。 I have integrated them and create my own framework. 我已经集成了它们并创建了自己的框架。 Now I want to add session management to my framework using Apache Shiro. 现在我想使用Apache Shiro将会话管理添加到我的框架中。 But I do not have any knowledge of Apache Shiro. 但我对Apache Shiro一无所知。 Can any one guide me on using Apache Shiro. 任何人都可以指导我使用Apache Shiro。 If any tutorials or eBooks available would be of great help. 如果有任何教程或电子书可以提供很大的帮助。

Check the documentation portion of the site. 检查站点的文档部分。 The Beginner's Introduction Tutorial is helpful. 初学者入门教程很有帮助。

Apache Shiro Documentation Apache Shiro文档

I have work with Shiro on a few projects, though none of them have utilised Spring components. 我在几个项目上与Shiro合作,但他们都没有使用Spring组件。

In general I would recommend perusing the Web App section of the Shiro Documentation. 一般来说,我建议仔细阅读Shiro文档的Web App部分。

Also consider these points 还要考虑这些要点

  • Shiro can allow for session management to be delegated to your Servlet environment Shiro可以允许将会话管理委派给您的Servlet环境
  • Shiro can be configured to use Native (memory) session management Shiro可以配置为使用本机(内存)会话管理
  • Shiro can be configured to not create persistent sessions, requiring authentication on every request Shiro可以配置为不创建持久会话,要求对每个请求进行身份验证
  • If the above config is too excessive for your app, you can also configure "noSession" on specific endpoints eg REST paths 如果上述配置对您的应用程序而言过于过分,您还可以在特定端点(例如REST路径)上配置“noSession”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM