是不8080占用了

来源:2-2 新建SpringBoot项目【标准SpringBoot项目目录结构】

qq_蓝骏毅_04076633

2021-03-23

2021-03-23 16:09:58.498 INFO 6068 — [ main] com.jiawa.wiki.WikiApplication : Starting WikiApplication using Java 1.8.0_271 on WIN-06A2DOOVT03 with PID 6068 (D:\Program Files\wiki\target\classes started by Administrator in D:\Program Files\wiki)
2021-03-23 16:09:58.503 INFO 6068 — [ main] com.jiawa.wiki.WikiApplication : No active profile set, falling back to default profiles: default
2021-03-23 16:09:59.548 INFO 6068 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-03-23 16:09:59.558 INFO 6068 — [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-03-23 16:09:59.558 INFO 6068 — [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.41]
2021-03-23 16:09:59.608 INFO 6068 — [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-03-23 16:09:59.608 INFO 6068 — [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1000 ms
2021-03-23 16:09:59.708 INFO 6068 — [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor’
2021-03-23 16:09:59.818 WARN 6068 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean ‘webServerStartStop’; nested exception is org.springframework.boot.web.server.PortInUseException: Port 8080 is already in use
2021-03-23 16:09:59.818 INFO 6068 — [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor’
2021-03-23 16:09:59.818 INFO 6068 — [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-03-23 16:09:59.858 INFO 6068 — [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-03-23 16:09:59.868 ERROR 6068 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Web server failed to start. Port 8080 was already in use.

Action:

Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port.

Process finished with exit code 1

写回答

1回答

达布牛和小耗子的春天

2021-03-23

杀死本机8080端口的线程

1
2
达布牛和小耗子的春天
回复
甲蛙
老师,我有次重启idea也不行的,因为本机电脑已经开启了8080端口,重启项目还会发现8080端口正在使用,我是用电脑cmd杀死线程,或者重启电脑的
2021-03-24
共2条回复

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2535 学习 · 1675 问题

查看课程