迁移 spring-boot 1.2.2 到 spring-boot 2.0.3

huangapple 未分类评论40阅读模式
英文:

Migrate spring-boot 1.2.2 to spring-boot 2.0.3

问题

我对于spring-boot还很陌生,并且在这个问题上遇到了困难。我正在将一个多模块项目从spring-boot 1.2.2迁移到spring-boot 2.0.3。在开始迁移到spring-boot 2.0.3之前,我尝试过先迁移到spring-boot 1.5.4。但是在这两种情况下,我都卡在了同样的错误上。
在一个父POM中,我有三个模块:

  • 1.clientModule
  • 2.commonModule
  • 3.serviceModule

错误是由于在clientModule中导入了commonModule导致的。它说(来自commonModule的)XXX包不存在。(这个错误来自clientModule),但是在spring-boot 1.2.2下,相同的代码可以正常运行。

英文:

I am new to spring-boot and I am stuck with this issue. I am migrating a multi-module project from spring-boot 1.2.2 to spring-boot 2.0.3. before jumping to spring-boot 2.0.3 I have tried to migrate to spring-boot 1.5.4. But I am stuck with the same error in both cases.
I have three modules inside a parent pom.

  • 1.clientModule
  • 2.commonModule
  • 3.serviceModule

Error is due to import of commonModule in clientModule. it says package XXX(from commonModule) is not exist.(This error is coming from clientModule) but the same code is running perfectly with spring-boot 1.2.2.

huangapple
  • 本文由 发表于 2020年7月24日 15:27:39
  • 转载请务必保留本文链接:https://java.coder-hub.com/63068829.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定