You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beim erstellen eines Service ist mir aufgefallen, dass in jeder MicroServiceApplication.java Datei die drei Annotations @Configuration, @ComponentScan und @EnableAutoConfiguration verwendet wurden. Ich bin darauf gestoßen, dass diese drei durch die Annotation @SpringBootApplication ersetzt werden können, da diese die gleichen Funktionen bietet. Das würde den Code etwas vereinfachen und kürzen.
Beschreibung
Beim erstellen eines Service ist mir aufgefallen, dass in jeder MicroServiceApplication.java Datei die drei Annotations
@Configuration
,@ComponentScan
und@EnableAutoConfiguration
verwendet wurden. Ich bin darauf gestoßen, dass diese drei durch die Annotation@SpringBootApplication
ersetzt werden können, da diese die gleichen Funktionen bietet. Das würde den Code etwas vereinfachen und kürzen.Quellen
Ziel
Der Vorschlag ist also, in allen Services die Annotations durch
@SpringBootApplication
zu ersetzen.The text was updated successfully, but these errors were encountered: