很多人在第一次创建运行SpringBoot项目的时候会报错 org.apache.catalina.LifecycleException: Protocol handler start failed
那么如何解决这?
这是端口8080被占用出现的报错,我们只需修改对应的端口号就可以了。
方法一:重启电脑(是最简单的方法)
方法二:修改端口号
错误如下所示
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.0.BUILD-SNAPSHOT)
2019-02-23 18:45:02.990 INFO 17804 --- [ main] com.youshang520i.HelloWordApplication : Starting HelloWordApplication on RR091W14Y49BH73 with PID 17804 (F:\WorkSpoces\newStart\helloWord\target\classes started by Administrator in F:\WorkSpoces\newStart\helloWord)
2019-02-23 18:45:02.993 INFO 17804 --- [ main] com.youshang520i.HelloWordApplication : No active profile set, falling back to default profiles: default
2019-02-23 18:45:04.056 INFO 17804 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2019-02-23 18:45:04.082 INFO 17804 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2019-02-23 18:45:04.083 INFO 17804 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.16]
2019-02-23 18:45:04.089 INFO 17804 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_121\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C: