I am starting to learn Spring Boot. I am struggling to find an example with multiple RestControllers, which indicates to me that I may be doing something wrong. I am trying a ve
Try this
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Main {
public static void main(String[] args) {
Object[] sources = new Object[2];
sources[0] = Controller1.class;
sources[1] = Controller2.class;
SpringApplication.run(sources, args);
}
}