Erstellen einer Spring‐Boot‐Applikation - thkwalter/physik GitHub Wiki
@SpringBootApplication
public class GalileanTransformationServer
{
public static void main(String[] args)
{
SpringApplication.run(GalileanTransformationServer.class, args);
}
}
- Die Annotation
@SpringBootApplication
umfasst auch die Annotation@ComponentScan
. Dadurch werden automatisch unter anderem alleRestController
im Package der Server-Klasse und allen Sub-Packages davon gefunden.