https://github.com/alibaba/druid/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98
https://github.com/alibaba/druid/wiki/Druid中使用log4j2进行日志输出
需要引入的依赖
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.4.0</version>
</dependency>
创建ShiroRealm类并继承AuthorizingRealm,然后实现AuthorizationInfo权限管理,AuthenticationInfo登录管理
/login-----CustomFormAuthenticationFilter-----验证码验证成功-------进入密码验证-----登录 /login-----CustomFormAuthenticationFilter-----验证码验证失败-------回到login Controller-----处理异常返回信息
url示例:localhost:8080/login?username=[email protected]&password=12345&randomcode=9DKG /login适合在shiroconfig中配置了路径auth拦截的登录,url:;/loginUser适合在shiroconfig中配置了路径anon不拦截的登录;