Hi everyone i am creating a project in Spring Boot with multi-module maven, what i would like to obtain is to seperate the interface and implementation in two different modules, like this:
- Module A:
public interface MyTestInterface{
String testMethod();
}
- Module B :
public class MyTestImpl implements MyTestInterface{
@Override
String testMethod(){
return "foo";
};
}
I can't get this result, could you give me an example of how to get it? Also is it a good thing to do this? As for the poms at the moment I only have a B versus A addiction in the poms.
<dependency>
<groupId>test.some</groupId>
<artifactId>B</artifactId>
</dependency>
The pom of the project that contains A and B module is some likes this:
<modules>
<module>A</module>
<module>B</module>
</modules>