FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SpringbootTutorial/Application.java at master · KydoDev/SpringbootTutorial · GitHub
KydoDev
/
SpringbootTutorial
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SpringbootTutorial
/
Application.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (25 loc) · 834 Bytes
Breadcrumbs
SpringbootTutorial
/
Application.java
Copy path
File metadata and controls
34 lines (25 loc) · 834 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package
com
.
skia
.
lab
;
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
.
Bean
;
@
SpringBootApplication
@
EnableSwagger2
public
class
Application
{
public
static
void
main
(
String
[]
args
) {
SpringApplication
.
run
(
Application
.
class
,
args
);
}
@
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
);
}
};
}
}
Back
|
FazBrowse Home
|
New Git URL