Exclude subpackages from Spring autowiring?

后端 未结 9 897
傲寒
傲寒 2020-12-02 10:00

Is there a simple way to exclude a package / sub-package from autowiring in Spring 3.1?

E.g., if I wanted to include a component scan with a base package of co

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 10:41

    This works in Spring 3.0.5. So, I would think it would work in 3.1

      
          
     
    

提交回复
热议问题