Giter Site home page Giter Site logo

jsets-shiro-demo's Introduction

jsets-shiro-spring-boot-starter 应用示例

这是一个简单的例子,用来演示jsets-shiro-spring-boot-starter的功能和使用方式

示例运行说明:

1、clone下来jsets-shiro-spring-boot-starter项目

2、maven**仓库有可能下载不了jcaptcha-1.0-all.jar,推荐您使用阿里的maven仓库。

<mirror>      
  <id>nexus-aliyun</id>    
  <name>nexus-aliyun</name>  
  <url>http://maven.aliyun.com/nexus/content/groups/public</url>    
  <mirrorOf>*</mirrorOf>      
</mirror> 

3、在mysql中新建一个数据库shiro-demo编码UTF-8,执行src/main/resources/jsets-shiro-demo.sql进行建表、导入初始数据。

4、运行Application.java,浏览器中打开http://localhost:8080/shiro-demo 进入系统。

5、使用用户名"admin",密码"123"登陆,在"用户管理"界面中可以看到4个测试账号密码都是123,您可以用这些账号进行鉴权测试。

6、本示例使用springboot\freemarker\mybatis-plus\layui构建

jsets-shiro-demo's People

Contributors

wj596 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsets-shiro-demo's Issues

登录问题

一直用户名或者密码错误,登录不进去

解除了锁定却没有清空错误次数

解除锁定之后如果再输入一次错误的密码则直接会被锁定。这个是不是需要把错误次数也清空。
PR就不推了,大家如果有类似的需求可以参考修改。
在ShiroUtils.java的这一行

shiroConfig().getRealms().stream()
				.filter(r -> (r instanceof CachingRealm) && ((CachingRealm) r).isCachingEnabled())
				.forEach(r -> shiroConfig().getCacheDelegator().clearAuthCache(account, r.getName()));

改成

shiroConfig().getRealms().stream()
				.filter(r -> (r instanceof CachingRealm) && ((CachingRealm) r).isCachingEnabled())
				.forEach(r -> {
					shiroConfig().getCacheDelegator().clearAuthCache(account, r.getName());
					shiroConfig().getCacheDelegator().cleanPasswdRetryCount(account);
				});

jsets-jdbc-spring-boot-starter依赖问题

“项目中使用的jsets-jdbc-spring-boot-starter-1.0.0.jar、jsets-shiro-spring-boot-starter-1.0.2.jar您可以下载后传到本地仓库。”为什么要依赖同一个项目的两个版本,改成一个不行吗?

demo中的疑问

假如角色管理菜单没有分配给任何的角色,则角色管理菜单的公开的,是这样吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.