mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-13 21:53:41 +08:00
style:TextMsgHandler中自动装配规范问题修改。static 成员不应该使用Autowired注解装配;且会找不到PrioritizedUrlTitleDiscover类型的bean对象。修复方式为:去除@Autowired注解,使用new方式创建对象
This commit is contained in:
@@ -46,7 +46,7 @@ public class TextMsgHandler extends AbstractMsgHandler {
|
|||||||
private UserInfoCache userInfoCache;
|
private UserInfoCache userInfoCache;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IRoleService iRoleService;
|
private IRoleService iRoleService;
|
||||||
@Autowired
|
|
||||||
private static final PrioritizedUrlTitleDiscover URL_TITLE_DISCOVER = new PrioritizedUrlTitleDiscover();
|
private static final PrioritizedUrlTitleDiscover URL_TITLE_DISCOVER = new PrioritizedUrlTitleDiscover();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user