Merge pull request #115 from ronger-x/master

🎨 关闭 shiro RememberMe 功能
This commit is contained in:
ronger 2022-12-08 14:53:17 +08:00 committed by GitHub
commit 3dc2934c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -64,6 +64,7 @@ public class ShiroConfig {
public SecurityManager securityManager() {
DefaultWebSecurityManager defaultWebSecurityManager = new DefaultWebSecurityManager();
defaultWebSecurityManager.setRealm(baseShiroRealm());
defaultWebSecurityManager.setRememberMeManager(null);
return defaultWebSecurityManager;
}

View File

@ -23,7 +23,7 @@ public class AccountHandler {
@Resource
private UserMapper userMapper;
@Async
@Async("accountThreadPool")
@EventListener
public void processAccountLastOnlineTimeEvent(AccountEvent accountEvent) {
userMapper.updateLastOnlineTimeByAccount(accountEvent.getAccount());

View File

@ -26,7 +26,7 @@ public class ArticleHandler {
private LuceneService luceneService;
@EventListener
@Async
@Async("articlePostThreadPool")
public void processArticlePostEvent(ArticleEvent articleEvent) throws InterruptedException {
Thread.sleep(1000);
log.info(String.format("执行文章发布相关事件:[%s]", JSON.toJSONString(articleEvent)));
@ -56,7 +56,7 @@ public class ArticleHandler {
}
@EventListener
@Async
@Async("articleDeleteThreadPool")
public void processArticleDeleteEvent(ArticleDeleteEvent articleDeleteEvent) throws InterruptedException {
Thread.sleep(1000);
log.info(String.format("执行文章删除相关事件:[%s]", JSON.toJSONString(articleDeleteEvent)));

View File

@ -29,7 +29,7 @@ public class CommentHandler {
@Resource
private CommentMapper commentMapper;
@Async
@Async("commentThreadPool")
@EventListener
public void processCommentCreatedEvent(CommentEvent commentEvent) throws InterruptedException {
log.info(String.format("开始执行评论发布事件:[%s]", JSON.toJSONString(commentEvent)));