JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Redundant declaration: @SpringBootApplication already applies given @ComponentScan

发布时间 2023-08-13 15:38:33作者: 哩个啷个波

报错提示内容:

 解决:将启动类文件移动到com.atguigu.eduservice包。应该是EduApplication.java文件自带的@SpringBootApplication中包含@ComponentScan,默认是扫描该类所在的包和子包的,即 @ComponentScan(basePackages = {"com.atguigu"}),所以再写一遍就提示多余的。

 

    本栏目推荐文章
  • 报错:Port 8080 was already in use.
  • pytorch反向传播错误解决:RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.
  • C语言implicit declaration of function 警告检查解决方法
  • 4_3 Declarative Programming
  • Qt小知识3.Q_DECLARE_PRIVATE和Q_DECLARE_PUBLIC
  • 金蝶云星空打开应用报错'D:\WorkSpace\XXXX\XXXX_k3Cloud' is already locked.
  • 微服务启动-端口already exist
  • vscode报错Already included file name ‘xxx‘ differs from file name ‘xxx‘ only in casing的解决方法:
  • 解决MySQL的C++驱动报错:‘my_bool’ was not declared in this scope; did you mean ‘bool’?
  • Spring Boot学习随笔- @SpringBootApplication详解、加载绝对路径配置文件、工厂创建对象(@ConfigurationProperties、@Value)
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们