Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
b4c8b521
Commit
b4c8b521
authored
Nov 17, 2020
by
xierz
Browse files
config
parent
0a83e054
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/config/ShiroConfig.java
View file @
b4c8b521
package
net.mingsoft.config
;
import
net.mingsoft.basic.security.
Base
AuthRealm
;
import
net.mingsoft.basic.security.
Manager
AuthRealm
;
import
org.apache.shiro.mgt.SecurityManager
;
import
org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor
;
import
org.apache.shiro.spring.web.ShiroFilterFactoryBean
;
...
...
@@ -100,7 +100,7 @@ public class ShiroConfig {
* 必须写这个类,并加上 @Bean 注解,目的是注入 CustomRealm, 否则会影响 CustomRealm类 中其他类的依赖注入
*/
@Bean
public
Base
AuthRealm
customRealm
()
{
return
new
Base
AuthRealm
();
public
Manager
AuthRealm
customRealm
()
{
return
new
Manager
AuthRealm
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment