Spring boot auto configuration with dependency and without @ComponentScan
问题 Spring boot provides @ComponentScan to find packages to be scanned. I am building a library which has @RestControllers inside with package com.mylib.controller . There are other classes as well with stereotype annotations in different packages. So, if some one is developing SpringBoot Application with com.myapp base package. He uses my library in his application. He need to mention @ComponentScan("com.mylib") to discover stereotype components of library. Is there any way to scan components