@ComponentScan default only scan current package. if not in current package, must add. Add @Component to allow injection. @ImportResource should happen before @ComponentScan if refer the object from it. 赞微海报分享
近期评论