I'm new to SpringBoot and I've been a long time without coding with Java. In my mind this doesn't make sense. Why is the SpringApplication.run() inside the class that it runs ?
Like so:
@SpringBootApplication
public class ConsumingRestApplication {
public static void main(String[] args) {
SpringApplication.run(ConsumingRestApplication.class, args);
}
}