需要加入注解@ComponentScan(basePackages="bean所在的包名")
example:
@SpringBootApplication
@ComponentScan(basePackages="com.,abc.")
public class TechproofApplication {
}
需要加入注解@ComponentScan(basePackages="bean所在的包名")
example:
@SpringBootApplication
@ComponentScan(basePackages="com.,abc.")
public class TechproofApplication {
}