Try adding an @ComponentScan(basePackages = {"com.xx.xx"}) scan to the entry xxxApplication class of the module reporting the error. I guess the error is caused by not scanning classes or interfaces in other modules.