Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the failure of repeatedly starting the server in the SpringBoot interface path?

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to solve the failure to start the server repeatedly in the SpringBoot interface path". In the daily operation, I believe that many people have doubts about how to solve the problem in the failure to start the server repeatedly in the SpringBoot interface path. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to solve the failure to start the server repeatedly in the SpringBoot interface path". Next, please follow the editor to study!

Duplicate SpringBoot interface path, failed to start the server

WARN [localhost-startStop-1] o.a.c.loader.WebappClassLoader BaseRose 180-The web application [ROOT] appears to have started a thread named [RxIoScheduler-1 (Evictor)] but has failed to stop it. This is very likely to create a memory leak.

Reason

The interface path is duplicate. I wrote two put requests in a controller, and neither of the put requests was re-routed to the interface, resulting in a duplicate path.

Solution method

Just give a method a new path.

Failed to start the server and reported an error spring-boot Failed to start component [StandardServer [- 1]] 2017-08-9 13 13 ERROR 4515 06131 [ERROR] [main] [org.springframework.boot.SpringApplication.run (SpringApplication.java:339)] Application startup failedorg.springframework.context.ApplicationContextException: Unable to start embedded container Nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh (EmbeddedWebApplicationContext.java:132) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:532) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh (EmbeddedWebApplicationContext.java:117) at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:689) at org.springframework.boot.SpringApplication.run (SpringApplication. Java:321) at org.springframework.boot.SpringApplication.run (SpringApplication.java:969) at org.springframework.boot.SpringApplication.run (SpringApplication.java:958) at com.longdai.notify.schedule.Application.main (Application.java:23) Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize (TomcatEmbeddedServletContainer.java:98) at org.springframework.boot.context.embedded. Tomcat.TomcatEmbeddedServletContainer. (TomcatEmbeddedServletContainer.java:75) at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer (TomcatEmbeddedServletContainerFactory.java:377) at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer (TomcatEmbeddedServletContainerFactory.java:155) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer (EmbeddedWebApplicationContext.java:156) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh (EmbeddedWebApplicationContext.java:129)... 7 common frames omittedCaused by: org. Apache.catalina.LifecycleException: Failed to start component [StandardServer [- 1]] at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:154) at org.apache.catalina.startup.Tomcat.start (Tomcat.java:337) at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize (TomcatEmbeddedServletContainer.java:88)... 12 common frames omittedCaused by: org.apache.catalina.LifecycleException: Failed to start component [Standard Service] at org.apache. Catalina.util.LifecycleBase.start (LifecycleBase.java:154) at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java:769) at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:150)... 14 common frames omittedCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngineTomcat] at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:154) at org.apache.catalina.core.StandardService.startInternal (StandardService.java:439) at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:150)... 16 common frames omittedCaused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:924) at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java:262) at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:150)... 18 common frames omitted problem

There is a conflict between servlet-api 's jar package and springboot's startup jar package

Servlet-api.jar javax.servlet javax.servlet-api 3.1.0 provided

SpringBoot launches the jar package

Org.springframework.boot spring-boot-starter-data-jpa solution

Delete the dependency of servlet-api and start it normally

At this point, the study on "how to solve the failure of repeatedly starting the server in the SpringBoot interface path" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report