How to get list of Interfaces from @ComponentScan packages

后端 未结 3 970
慢半拍i
慢半拍i 2020-12-31 19:12

I would like to implement something similar to Spring Data.

Developer can define some interfaces, add a custom annotation to the interfaces to mark them, (my code w

3条回答
  •  没有蜡笔的小新
    2020-12-31 19:14

    I your case I would use a config similar to this in your BeanLocation.xml and separate the proyect by subfolders like mine, I found that useful:

    folders -> java/ar/edu/unq/tip/marchionnelattenero

    
    
    
        
    
        
    
        
        
    
    
    

    As you can see, I tell to auto scan all component in folders and subfolders begining from /ar

    You can check my public git project here -> git project

    Check it, and if some new question is related, or maybe I did not understand your question well, let me know

提交回复
热议问题