Call a class that concentrates all autowired

0

In my project in each controller that I programmed I have to place the @Autowired of each service class in order to get the methods, but I think that this way of doing it is not the correct one so create a class called autowiredall which concentrates all the @Autowired so that later they are used by my controller classes, so far so good, the problem of day because when the project was executed, it is like not reading the class that hosts all the @Autowired, making it re-place in each controller the whole list from autowired, can someone tell me if my idea is ok? And if they're fine, they'll have some example of eating implement it.

    
asked by Carlos Alberto Ormeño Salazar 28.06.2017 в 02:57
source

0 answers