英文:
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
.
专注分享java语言的经验与见解,让所有开发者获益!
评论