Commit d2cb4d34 by 段启岩

解决循环依赖

parent 33405ba1
......@@ -50,10 +50,14 @@ public class TopicServiceImpl extends ServiceImpl<TopicMapper, Topic> implements
private IPostService postService;
@Autowired
public TopicServiceImpl(ITopicFollowService topicFollowService, TopicMapper topicMapper,ITopicReferenceService topicReferenceService,IPostService postService) {
public TopicServiceImpl(ITopicFollowService topicFollowService, TopicMapper topicMapper,ITopicReferenceService topicReferenceService) {
this.topicFollowService = topicFollowService;
this.topicMapper = topicMapper;
this.topicReferenceService = topicReferenceService;
}
@Autowired
public void setPostService(IPostService postService) {
this.postService = postService;
}
......
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