Skip to content

Commit 94d8389

Browse files
added jars for spring data jpa and h2
1 parent ab7bb06 commit 94d8389

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838
<artifactId>spring-boot-devtools</artifactId>
3939
</dependency>
4040

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+
4152
<!--WebJars-->
4253
<dependency>
4354
<groupId>org.webjars</groupId>

src/main/java/guru/springframework/SpringmvcApplication.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.context.ApplicationContext;
56

67
@SpringBootApplication
78
public class SpringmvcApplication {
89

910
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());
1118
}
1219
}

0 commit comments

Comments
 (0)