摘要: 自定义返回JSON数据主要配置如下地方: 在ShiroConfig中修改如下: @Bean(name = "shiroFilter") public ShiroFilterFactoryBean shiroFilter(SecurityManager securityManager) { Shiro 阅读全文
posted @ 2020-10-20 19:28 shuanger051 阅读(934) 评论(0) 推荐(0)
摘要: spring boot 集成 shiro 添加超级管理员,只需要在MyRealm类中添加如下代码,MyRealm类可以查看我 《spring boot 集成 shiro》的文章 @Value("${platform.admin.account}") private String adminAccou 阅读全文
posted @ 2020-10-20 19:20 shuanger051 阅读(971) 评论(0) 推荐(0)
摘要: 1.maven集成所需关键jar包。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency 阅读全文
posted @ 2020-10-20 19:16 shuanger051 阅读(342) 评论(0) 推荐(0)