File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
src/main/java/com/example/springboot Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 15
15
<description >Demo project for Spring Boot</description >
16
16
<properties >
17
17
<java .version>17</java .version>
18
+ <tomcat .version>10.1.7</tomcat .version>
18
19
</properties >
19
20
<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
+
20
27
<dependency >
21
28
<groupId >org.springframework.boot</groupId >
22
29
<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 >
23
36
</dependency >
24
37
25
38
<dependency >
Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ public class Application {
11
11
12
12
public static void main (String [] args ) {
13
13
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
- }
22
14
}
23
15
24
16
}
You can’t perform that action at this time.
0 commit comments