The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)

多个模块实现同一个service时,其中有模块不需要实现这个service,注入时可以用@Autowired(required = false)

posted on 2021-12-09 14:55  boliao  阅读(7118)  评论(0)    收藏  举报