Skip to content

Commit 4bf6a05

Browse files
committed
Refactor Application startup configuration for improved readability
1 parent aa715d5 commit 4bf6a05

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/fr/sandro642/github/spring/Application.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ private boolean isStatic() {
5858
public Mono<Void> startApplication() {
5959
return Mono.fromRunnable(() -> {
6060
SpringApplication app = new SpringApplication(Application.class);
61-
app.setBannerMode(Banner.Mode.OFF); // supprime le banner Spring
62-
app.setLogStartupInfo(false); // désactive l'info de démarrage
61+
app.setBannerMode(Banner.Mode.OFF);
62+
app.setLogStartupInfo(false);
6363
Map<String, Object> props = new HashMap<>();
64-
props.put("server.port", Dyn_Port()); // définit le port du serveur
64+
props.put("server.port", Dyn_Port());
6565
props.put("logging.level.root", "OFF");
6666
app.setDefaultProperties(props);
6767
app.run();

0 commit comments

Comments
 (0)