Springboot中在ioc容器找不到bean解决方法

在启动类的@SpringBootApplication注解上加上@SpringBootApplication(scanBasePackages = “包名”),注意,包名必定要精确到包web
相关文章
相关标签/搜索