SOFA框架跨包调用报错NoClassDefFoundError
时间:2020-03-19 00:20:23
收藏:0
阅读:70
报错信息:
java.lang.NoClassDefFoundError
乍一看是找不到这个包,POM也加了 <dependency> 依赖,
<dependency>
<groupId>A</groupId>
<artifactId>B</artifactId>
</dependency>
但是就是报错无法调用。
实际上POM里还需要添加
<artifactItem>
<groupId>A</groupId>
<artifactId>B</artifactId>
</artifactItem>
原因是SOFA版本过低,所以需要添加<artifactItem>来支持跨包调用。
原文:https://www.cnblogs.com/hkgov/p/12520947.html
评论(0)