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
Litemall
Commits
7c099e64
Commit
7c099e64
authored
Apr 12, 2021
by
linlinjava
Browse files
[litemall-admin-api]: #I3I94X
parent
d616a646
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/shiro/AdminAuthorizingRealm.java
View file @
7c099e64
...
...
@@ -13,19 +13,27 @@ import org.linlinjava.litemall.db.service.LitemallAdminService;
import
org.linlinjava.litemall.db.service.LitemallPermissionService
;
import
org.linlinjava.litemall.db.service.LitemallRoleService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.util.Assert
;
import
org.springframework.util.StringUtils
;
import
java.util.List
;
import
java.util.Set
;
/**
* 下面三个Autowired注解需要配合Lazy注解使用,否则会导致这三个service相关的事务失效。
* https://gitee.com/linlinjava/litemall/issues/I3I94X#note_4809495
*/
public
class
AdminAuthorizingRealm
extends
AuthorizingRealm
{
@Autowired
@Lazy
private
LitemallAdminService
adminService
;
@Autowired
@Lazy
private
LitemallRoleService
roleService
;
@Autowired
@Lazy
private
LitemallPermissionService
permissionService
;
@Override
...
...
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