简体   繁体   English

如何将spring boot初始化为项目?

[英]How to initialize spring boot to project?

I'm new to spring boot.我是弹簧靴的新手。 When I'm trying to initialize spring boot using intellij idea, It shows this error.当我尝试使用 intellij idea 初始化 spring boot 时,它显示此错误。

Spring启动初始化错误 1 1

在此处输入图片说明 2 2

How can I fix it?我该如何解决? I used Spring web, spring data mongodb, lombok and spring boot devtools dependencies.我使用了 Spring web、spring data mongodb、lombok 和 spring boot devtools 依赖项。

Thank you谢谢

I could find the solution for this problem.我可以找到这个问题的解决方案。 These are the steps that I followed.这些是我遵循的步骤。

  1. I delete the existing MongoDB dependency.我删除了现有的 MongoDB 依赖项。
  2. Then I copied high usage MongoDB dependency version from MVNRepository.然后我从 MVNRepository 复制了高使用率的 MongoDB 依赖版本。
  3. Then I added that copied dependency to the project.然后我将复制的依赖项添加到项目中。

I Fixed this Error with this solutions:我用这个解决方案修复了这个错误:

  1. Clean Project清洁工程
  2. Delete MongoDb Dependency删除 MongoDb 依赖
  3. Copy high usage MongoDB dependency version from Repository从 Repository 复制高使用率的 MongoDB 依赖版本
  4. Add to project Copied dependency添加到项目复制依赖

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM