问题遇到的现象和发生背景
springboot 同一个工程下不同模块之间的类相互调用
A模块要调用B 模块里的方法,
出现了这个问题,
import成功了,但是方法用不了。
包的依赖已经引用了
这是A模块的pom,xml
<parent>
<groupId>com.tdt</groupId>
<artifactId>ads-modulars</artifactId>
<version>1.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<version>1.0.0</version>
<artifactId>ads-modulars-sys</artifactId>
<packaging>jar</packaging>
这是B 模块的pom.xml
<dependency>
<groupId>com.tdt</groupId>
<artifactId>ads-modulars-sys</artifactId>
<version>1.0.0</version>
</dependency>
请问是什么原因?