Commit 98c5a03d by 段启岩

解决循环依赖

parent 162b943f
...@@ -42,12 +42,16 @@ public class TopicServiceImpl extends ServiceImpl<TopicMapper, Topic> implements ...@@ -42,12 +42,16 @@ public class TopicServiceImpl extends ServiceImpl<TopicMapper, Topic> implements
private TopicMapper topicMapper; private TopicMapper topicMapper;
@Autowired @Autowired
public TopicServiceImpl(ITopicFollowService topicFollowService, IUserService userService, TopicMapper topicMapper) { public TopicServiceImpl(ITopicFollowService topicFollowService, TopicMapper topicMapper) {
this.topicFollowService = topicFollowService; this.topicFollowService = topicFollowService;
this.userService = userService;
this.topicMapper = topicMapper; this.topicMapper = topicMapper;
} }
@Autowired
public void setUserService(IUserService userService) {
this.userService = userService;
}
@Override @Override
public TopicDetail createTopic(String userId, String topicName) { public TopicDetail createTopic(String userId, String topicName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment