File tree Expand file tree Collapse file tree
backend/src/main/java/dev/marco/example/springboot Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package dev .marco .example .springboot ;
22
3- import java .util .Arrays ;
4-
5- import org .springframework .boot .CommandLineRunner ;
63import org .springframework .boot .SpringApplication ;
74import org .springframework .boot .autoconfigure .SpringBootApplication ;
8- import org .springframework .context .ApplicationContext ;
9- import org .springframework .context .annotation .Bean ;
5+
106
117@ SpringBootApplication
128public class Application {
139
1410 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 );
3112 }
32-
3313}
Original file line number Diff line number Diff line change 8181
8282 <resources >
8383 <resource >
84+ <!-- we copy the content of the frontend directory in the final artifact -->
8485 <directory >dist/frontend</directory >
8586 </resource >
8687 </resources >
You can’t perform that action at this time.
0 commit comments