Commit 287f71df by 钱炳权

24/3/28

parent 1b191c69
2024-03-28 09:25:48.524 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 18664 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 09:25:48.526 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 09:25:49.089 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8080 (http)
2024-03-28 09:25:49.098 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 09:25:49.098 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 09:25:49.153 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 09:25:49.153 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 602 ms
2024-03-28 09:25:49.333 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - 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
2024-03-28 09:25:49.334 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2024-03-28 09:25:49.341 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-28 09:25:49.347 [main] ERROR o.s.b.diagnostics.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.
2024-03-28 09:27:58.462 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 29264 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 09:27:58.464 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 09:27:58.832 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8001 (http)
2024-03-28 09:27:58.839 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 09:27:58.839 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 09:27:58.891 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 09:27:58.892 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 411 ms
2024-03-28 09:27:59.084 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - 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 8001 is already in use
2024-03-28 09:27:59.086 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2024-03-28 09:27:59.092 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-28 09:27:59.098 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8001 was already in use.
Action:
Identify and stop the process that's listening on port 8001 or configure this application to listen on another port.
2024-03-28 09:29:28.060 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 27776 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 09:29:28.062 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 09:29:28.444 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8001 (http)
2024-03-28 09:29:28.449 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 09:29:28.449 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 09:29:28.506 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 09:29:28.507 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 428 ms
2024-03-28 09:29:28.675 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - 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 8001 is already in use
2024-03-28 09:29:28.679 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2024-03-28 09:29:28.687 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2024-03-28 09:29:28.697 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8001 was already in use.
Action:
Identify and stop the process that's listening on port 8001 or configure this application to listen on another port.
2024-03-28 09:29:45.967 [main] INFO com.example.fuzzControll.FuzzControlApplication - Starting FuzzControlApplication using Java 11.0.6 on DESKTOP-GDSKRB2 with PID 9172 (D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend\target\classes started by qian in D:\code\company\fuzz-backend\fuzz-backend\fuzzbackend)
2024-03-28 09:29:45.968 [main] INFO com.example.fuzzControll.FuzzControlApplication - The following 1 profile is active: "dev"
2024-03-28 09:29:46.392 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8100 (http)
2024-03-28 09:29:46.399 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2024-03-28 09:29:46.399 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.68]
2024-03-28 09:29:46.453 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-03-28 09:29:46.453 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 466 ms
2024-03-28 09:29:46.632 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8100 (http) with context path ''
2024-03-28 09:29:46.637 [main] INFO com.example.fuzzControll.FuzzControlApplication - Started FuzzControlApplication in 0.855 seconds (JVM running for 1.274)
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId> <groupId>com.example</groupId>
<artifactId>aflnetControl</artifactId> <artifactId>fuzzbackend</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>aflnetControl</name> <name>fuzz-backend</name>
<description>aflnetControl</description> <description>fuzz-backend</description>
<properties> <properties>
<java.version>11</java.version> <java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version> <version>${spring-boot.version}</version>
<configuration> <configuration>
<mainClass>com.example.aflnetcontrol.AflnetControlApplication</mainClass> <mainClass>com.example.fuzzControll.AflnetControlApplication</mainClass>
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>
<executions> <executions>
......
package com.example.aflnetcontrol; package com.example.fuzzControll;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class AflnetControlApplication { public class FuzzControlApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(AflnetControlApplication.class, args); SpringApplication.run(FuzzControlApplication.class, args);
} }
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* 修改内容: * 修改内容:
* 修改记录2: …… * 修改记录2: ……
********************************************************************/ ********************************************************************/
package com.example.aflnetcontrol.conf; package com.example.fuzzControll.conf;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
......
package com.example.aflnetcontrol.conf; package com.example.fuzzControll.conf;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
......
package com.example.aflnetcontrol.conf; package com.example.fuzzControll.conf;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
......
package com.example.aflnetcontrol.constents; package com.example.fuzzControll.constents;
public class cmdConstent { public class cmdConstent {
public static final String GET_FILE_NAME = "ls -h "; public static final String GET_FILE_NAME = "ls -h ";
......
package com.example.aflnetcontrol.controller; package com.example.fuzzControll.controller;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
......
package com.example.aflnetcontrol.controller; package com.example.fuzzControll.controller;
import com.example.aflnetcontrol.pojo.vo.AjaxResult; import com.example.fuzzControll.pojo.vo.AjaxResult;
import com.example.aflnetcontrol.service.seedFileService; import com.example.fuzzControll.service.seedFileService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
......
package com.example.aflnetcontrol.controller; package com.example.fuzzControll.controller;
import com.example.aflnetcontrol.pojo.vo.AjaxResult; import com.example.fuzzControll.pojo.vo.AjaxResult;
import com.example.aflnetcontrol.pojo.vo.cmdStartParams; import com.example.fuzzControll.pojo.vo.cmdStartParams;
import com.example.aflnetcontrol.service.testService; import com.example.fuzzControll.service.testService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
......
package com.example.aflnetcontrol.pojo.vo; package com.example.fuzzControll.pojo.vo;
import java.util.HashMap; import java.util.HashMap;
......
package com.example.aflnetcontrol.pojo.vo; package com.example.fuzzControll.pojo.vo;
import lombok.Data; import lombok.Data;
import lombok.Getter; import lombok.Getter;
......
package com.example.aflnetcontrol.pojo.vo; package com.example.fuzzControll.pojo.vo;
import lombok.Data; import lombok.Data;
......
package com.example.aflnetcontrol.service.impl; package com.example.fuzzControll.service.impl;
import com.example.aflnetcontrol.conf.seedProperties; import com.example.fuzzControll.conf.seedProperties;
import com.example.aflnetcontrol.constents.cmdConstent; import com.example.fuzzControll.constents.cmdConstent;
import com.example.aflnetcontrol.service.seedFileService; import com.example.fuzzControll.service.seedFileService;
import com.example.aflnetcontrol.tools.cmdTools; import com.example.fuzzControll.tools.cmdTools;
import com.example.aflnetcontrol.tools.fileTools; import com.example.fuzzControll.tools.fileTools;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
......
package com.example.aflnetcontrol.service.impl; package com.example.fuzzControll.service.impl;
import com.example.aflnetcontrol.constents.cmdConstent; import com.example.fuzzControll.constents.cmdConstent;
import com.example.aflnetcontrol.pojo.vo.cmdStartParams; import com.example.fuzzControll.pojo.vo.cmdStartParams;
import com.example.aflnetcontrol.service.testService; import com.example.fuzzControll.service.testService;
import com.example.aflnetcontrol.tools.cmdTools; import com.example.fuzzControll.tools.cmdTools;
import com.example.aflnetcontrol.tools.testControlTools; import com.example.fuzzControll.tools.testControlTools;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@Service("testService") @Service("testService")
......
package com.example.aflnetcontrol.service; package com.example.fuzzControll.service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
......
package com.example.aflnetcontrol.service; package com.example.fuzzControll.service;
import com.example.aflnetcontrol.pojo.vo.cmdStartParams; import com.example.fuzzControll.pojo.vo.cmdStartParams;
import java.util.List;
public interface testService { public interface testService {
......
package com.example.aflnetcontrol.tools; package com.example.fuzzControll.tools;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.example.aflnetcontrol.conf.SpringContextUtil; import com.example.fuzzControll.conf.SpringContextUtil;
import com.example.aflnetcontrol.controller.WebSocket; import com.example.fuzzControll.controller.WebSocket;
import com.example.aflnetcontrol.pojo.vo.cmdStartParams; import com.example.fuzzControll.pojo.vo.cmdStartParams;
import com.example.aflnetcontrol.pojo.vo.testReturnEntity; import com.example.fuzzControll.pojo.vo.testReturnEntity;
import java.io.*; import java.io.*;
......
package com.example.aflnetcontrol.tools; package com.example.fuzzControll.tools;
import com.example.aflnetcontrol.conf.SpringContextUtil; import com.example.fuzzControll.conf.SpringContextUtil;
import com.example.aflnetcontrol.conf.seedProperties; import com.example.fuzzControll.conf.seedProperties;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;
......
package com.example.aflnetcontrol.tools; package com.example.fuzzControll.tools;
public class testControlTools { public class testControlTools {
private static Boolean isRunning; private static Boolean isRunning;
......
spring: spring:
application: application:
name: afelnet-backend name: fuzz-backend
profiles: profiles:
active: dev #默认为开发环境 active: dev #默认为开发环境
server:
port: 8100
package com.example.aflnetcontrol; package com.example.fuzzControll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment