File tree Expand file tree Collapse file tree 2 files changed +3
-22
lines changed
backend/src/main/java/dev/marco/example/springboot Expand file tree Collapse file tree 2 files changed +3
-22
lines changed Original file line number Diff line number Diff line change 1
1
package dev .marco .example .springboot ;
2
2
3
- import java .util .Arrays ;
4
-
5
- import org .springframework .boot .CommandLineRunner ;
6
3
import org .springframework .boot .SpringApplication ;
7
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
8
- import org .springframework .context .ApplicationContext ;
9
- import org .springframework .context .annotation .Bean ;
5
+
10
6
11
7
@ SpringBootApplication
12
8
public class Application {
13
9
14
10
public static void main (String [] args ) {
15
- SpringApplication .run (Application .class , args );
16
- }
17
-
18
- @ Bean
19
- public CommandLineRunner commandLineRunner (ApplicationContext ctx ) {
20
- return args -> {
21
-
22
- System .out .println ("Let's inspect the beans provided by Spring Boot:" );
23
-
24
- String [] beanNames = ctx .getBeanDefinitionNames ();
25
- Arrays .sort (beanNames );
26
- for (String beanName : beanNames ) {
27
- System .out .println (beanName );
28
- }
29
-
30
- };
11
+ SpringApplication .run (Application .class );
31
12
}
32
-
33
13
}
Original file line number Diff line number Diff line change 81
81
82
82
<resources >
83
83
<resource >
84
+ <!-- we copy the content of the frontend directory in the final artifact -->
84
85
<directory >dist/frontend</directory >
85
86
</resource >
86
87
</resources >
You can’t perform that action at this time.
0 commit comments