GeezerVison is showing github.com — plugin cleaning · rajan-vora/java-angular-basic@b69f600
File tree
Expand file treeCollapse file tree
Open diff view settings
backend/src/main/java/dev/marco/example/springboot
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +2-22Lines changed: 2 additions & 22 deletions | 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 | } |
Collapse file
Copy file name to clipboardExpand all lines: frontend/pom.xml +1Lines changed: 1 addition & 0 deletions | 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> |
|