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 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 >
Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ public class Application {
1111
1212public static void main (String [] args ) {
1313ApplicationContext 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}
You can’t perform that action at this time.
0 commit comments