开发者社区 问答 正文

Spring Boot-不支持不必要地替换不存在的任务。直接使用create()或register(

我正在构建一个Spring Boot微服务应用程序,但是在intellij idea中打开时遇到此错误。

Unnecessarily replacing a task that does not exist is not supported. Use create() or register() directly instead. You attempted to replace a task named 'ZuulServerApplication.main()', but there is no existing task with that name.

我从Spring Boot Initialzr下载了其他项目,它们没有显示任何错误,但最近我遇到了这个问题。怎么解决呢?

展开
收起
几许相思几点泪 2019-12-23 17:44:55 1458 分享 版权
1 条回答
写回答
取消 提交回答
  • 技术架构师 阿里云开发者社区技术专家博主 CSDN签约专栏技术博主 掘金签约技术博主 云安全联盟专家 众多开源代码库Commiter

    检查下目录吧少年

    2019-12-28 14:15:48
    赞同 展开评论