I\'m currently working on a REST API with Spring Boot.
I\'m new to Maven and have just started coding with IDEA (don\'t know well this IDE yet), and I have a problem
Your project structured as:
if your App.java in a package: com.xxxx.pro,then set the sub module's package is com.xxx.pro,such as your sub module's controller is TestController.java, and the code is:
package com.xx.pro.web;
@RestController
public class TestController{
}
so, this sub moudle's TestController will be sanned by App.java.Try it on, good luck.