Skip to content

Commit a44b808

Browse files
committed
Apply crac changes
1 parent 2eefff7 commit a44b808

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,24 @@
1515
<description>Demo project for Spring Boot</description>
1616
<properties>
1717
<java.version>17</java.version>
18+
<tomcat.version>10.1.7</tomcat.version>
1819
</properties>
1920
<dependencies>
21+
<dependency>
22+
<groupId>io.github.crac.org.apache.tomcat.embed</groupId>
23+
<artifactId>tomcat-embed-core</artifactId>
24+
<version>10.1.7</version>
25+
</dependency>
26+
2027
<dependency>
2128
<groupId>org.springframework.boot</groupId>
2229
<artifactId>spring-boot-starter-web</artifactId>
30+
<exclusions>
31+
<exclusion>
32+
<groupId>org.apache.tomcat.embed</groupId>
33+
<artifactId>tomcat-embed-core</artifactId>
34+
</exclusion>
35+
</exclusions>
2336
</dependency>
2437

2538
<dependency>

src/main/java/com/example/springboot/Application.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ public class Application {
1111

1212
public static void main(String[] args) {
1313
ApplicationContext ctx = SpringApplication.run(Application.class, args);
14-
15-
System.out.println("Let's inspect the beans provided by Spring Boot:");
16-
17-
String[] beanNames = ctx.getBeanDefinitionNames();
18-
Arrays.sort(beanNames);
19-
for (String beanName : beanNames) {
20-
System.out.println(beanName);
21-
}
2214
}
2315

2416
}

0 commit comments

Comments
 (0)