From 3284fd5c97a08c6e9d8dfff59c2a96ee1a68fe4e Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 14 Apr 2020 20:36:48 +0200 Subject: [PATCH 1/3] Some dirty code --- src/main/Application.java | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/Application.java diff --git a/src/main/Application.java b/src/main/Application.java new file mode 100644 index 0000000..11a1d0d --- /dev/null +++ b/src/main/Application.java @@ -0,0 +1,33 @@ +import java.util.Arrays; + +import org.springframework.boot.CommandLineRunner; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.*; + +@SpringBootApplication +public class Application { + + public static void Main(String[] args) { + SpringApplication.run(Application.class, args); + } + + private void DoNothing(){ + Int J = 100; + } + + @Bean + public CommandLineRunner commandLineRunner(ApplicationContext ctx) { + return args -> { + System.out.println("Let's inspect the beans provided by Spring Boot:"); + + String[] beanNames = ctx.getBeanDefinitionNames(); + Arrays.sort(beanNames); + for (String beanName : beanNames) { + System.out.println(beanName); + } + }; + } + +} \ No newline at end of file From 85cefc5d03e22076a1ff1a37754f8950f54013d0 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 30 May 2020 16:05:29 +0200 Subject: [PATCH 2/3] Update Application.java --- src/main/Application.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/Application.java b/src/main/Application.java index 11a1d0d..3cd5230 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -10,7 +10,7 @@ public class Application { public static void Main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(Application.class, args); } private void DoNothing(){ @@ -30,4 +30,4 @@ public CommandLineRunner commandLineRunner(ApplicationContext ctx) { }; } -} \ No newline at end of file +} From e2364bd9e3a85242dd5c04726699cfecaf62314e Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 30 May 2020 16:22:19 +0200 Subject: [PATCH 3/3] Update Application.java --- src/main/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Application.java b/src/main/Application.java index 3cd5230..ea50eb4 100644 --- a/src/main/Application.java +++ b/src/main/Application.java @@ -20,7 +20,7 @@ private void DoNothing(){ @Bean public CommandLineRunner commandLineRunner(ApplicationContext ctx) { return args -> { - System.out.println("Let's inspect the beans provided by Spring Boot:"); + System.out.println("Let's inspect the beans provided by Spring Boot:"); String[] beanNames = ctx.getBeanDefinitionNames(); Arrays.sort(beanNames);