Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@SpringBootApplication Annotation #406

Open
vjohnslhm opened this issue Sep 3, 2024 · 0 comments
Open

@SpringBootApplication Annotation #406

vjohnslhm opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vjohnslhm
Copy link
Contributor

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.

@vjohnslhm vjohnslhm added the enhancement New feature or request label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant