![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shiro权限验证
酒館打了烊
JAVA程序员小白的成长之路
展开
-
shrio使用Freemark注解式权限验证
1.扩展freemarker标签 public class MyFreeMarkerConfig extends FreeMarkerConfigurer { @Override public void afterPropertiesSet() throws IOException, TemplateException { //继承之前的属性配置,这不不能省 super.afterPropertiesSet(); Configuration c原创 2020-11-03 20:35:41 · 146 阅读 · 0 评论 -
使用shiro进行权限验证
配置在上一篇博客中配置,这里不再继续重写配置 1.配置spring-shiro.xml文件 <bean class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor"> <property name="securityManager" ref="securityManager"></property> </bean> 2.在需要设置权限的原创 2020-11-02 21:47:51 · 91 阅读 · 0 评论