File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
src/main/java/guru/springframework Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 38
38
<artifactId >spring-boot-devtools</artifactId >
39
39
</dependency >
40
40
41
+ <dependency >
42
+ <groupId >org.springframework.boot</groupId >
43
+ <artifactId >spring-boot-starter-data-jpa</artifactId >
44
+ </dependency >
45
+
46
+ <dependency >
47
+ <groupId >com.h2database</groupId >
48
+ <artifactId >h2</artifactId >
49
+ <scope >runtime</scope >
50
+ </dependency >
51
+
41
52
<!-- WebJars-->
42
53
<dependency >
43
54
<groupId >org.webjars</groupId >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
+ import org .springframework .context .ApplicationContext ;
5
6
6
7
@ SpringBootApplication
7
8
public class SpringmvcApplication {
8
9
9
10
public static void main (String [] args ) {
10
- SpringApplication .run (SpringmvcApplication .class , args );
11
+ ApplicationContext ctx = SpringApplication .run (SpringmvcApplication .class , args );
12
+
13
+ // for (String name : ctx.getBeanDefinitionNames()){
14
+ // System.out.println(name);
15
+ // }
16
+ // System.out.println("******* Bean Count *******");
17
+ // System.out.println(ctx.getBeanDefinitionCount());
11
18
}
12
19
}
You can’t perform that action at this time.
0 commit comments