From bacf80e22e0e81838a54bfabe48ca9cd5e2cd126 Mon Sep 17 00:00:00 2001 From: esoe Date: Sat, 4 Jun 2022 19:28:35 +0300 Subject: [PATCH] qq --- .vscode/settings.json | 4 + pom.xml | 88 ++++++++++++++++++ src/main/java/ru/egspt/MainServlet.java | 20 ++++ src/main/webapp/WEB-INF/web.xml | 11 +++ target/classes/ru/egspt/MainServlet.class | Bin 0 -> 1088 bytes target/maven-archiver/pom.properties | 3 + .../compile/default-compile/createdFiles.lst | 1 + .../compile/default-compile/inputFiles.lst | 1 + target/moodle-web-0.1.war | Bin 0 -> 3003 bytes .../classes/ru/egspt/MainServlet.class | Bin 0 -> 1088 bytes target/moodle-web-0.1/WEB-INF/web.xml | 11 +++ 11 files changed, 139 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 pom.xml create mode 100644 src/main/java/ru/egspt/MainServlet.java create mode 100644 src/main/webapp/WEB-INF/web.xml create mode 100644 target/classes/ru/egspt/MainServlet.class create mode 100644 target/maven-archiver/pom.properties create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 target/moodle-web-0.1.war create mode 100644 target/moodle-web-0.1/WEB-INF/classes/ru/egspt/MainServlet.class create mode 100644 target/moodle-web-0.1/WEB-INF/web.xml diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5b583f2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "maven.view": "hierarchical", + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b75f04d --- /dev/null +++ b/pom.xml @@ -0,0 +1,88 @@ + + + + 4.0.0 + + ru.egspt + moodle-web + 0.1 + war + + + demo + + http://www.example.com + + + UTF-8 + 1.8 + 1.8 + + + + + junit + junit + 4.11 + test + + + + jakarta.servlet + jakarta.servlet-api + 5.0.0 + provided + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-war-plugin + 3.3.1 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + + diff --git a/src/main/java/ru/egspt/MainServlet.java b/src/main/java/ru/egspt/MainServlet.java new file mode 100644 index 0000000..6e506aa --- /dev/null +++ b/src/main/java/ru/egspt/MainServlet.java @@ -0,0 +1,20 @@ +package ru.egspt; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.io.PrintWriter; + +@WebServlet("/hello") +public class MainServlet extends HttpServlet { + + @Override + protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html"); + PrintWriter printWriter = resp.getWriter(); + printWriter.write("it works!"); + printWriter.close(); + } +} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..3c5df65 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,11 @@ + + + + moodle-web-report + + + hello + + \ No newline at end of file diff --git a/target/classes/ru/egspt/MainServlet.class b/target/classes/ru/egspt/MainServlet.class new file mode 100644 index 0000000000000000000000000000000000000000..5d5131395f7ed0c2af10283926a8a7022ed0cdca GIT binary patch literal 1088 zcma)5TW=CU6#j;$ak9agL9TJBJG`8%N}n3IIgnB2n<{Qb!g4p<{|IQ zO?hP5Ln;t4``otOB;rUg#1ubMH0FVAz)a#Xo+R-U&&VNE;nbDKe$l{A63?~ch0a)8 z#3DoCD(V)5Oq-icgkkmH&^~;cvzD&HZW3FXZHAQ3)voI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m8!}=O!1uqJGgk4=E({g71olL$jLnpEb{SqPxNP-_iV!0$R!G z`txj+w~yV}zlZnV>9!X9tNyTbr@>m@UzPbPFP8n^|0VBg(W8;PU=D=< N`>A2;#{T8v`3D1rVT=F( literal 0 HcmV?d00001 diff --git a/target/moodle-web-0.1/WEB-INF/classes/ru/egspt/MainServlet.class b/target/moodle-web-0.1/WEB-INF/classes/ru/egspt/MainServlet.class new file mode 100644 index 0000000000000000000000000000000000000000..5d5131395f7ed0c2af10283926a8a7022ed0cdca GIT binary patch literal 1088 zcma)5TW=CU6#j;$ak9agL9TJBJG`8%N}n3IIgnB2n<{Qb!g4p<{|IQ zO?hP5Ln;t4``otOB;rUg#1ubMH0FVAz)a#Xo+R-U&&VNE;nbDKe$l{A63?~ch0a)8 z#3DoCD(V)5Oq-icgkkmH&^~;cvzD&HZW3FXZHAQ3)voI(?x=%r9vO0asfY;Ma(ZS< z5f{DjPQ-eA#?^XB@5UmwX8p{ONDF(aNhaO3U7w?fDE&qH34qu{f@G3TCTT`GT=@a^ zeeAwQGBP$MkfQJ8Bmik-=oG>VvIL@&CFv09&1yDqfnWgD3xpW + + + moodle-web-report + + + hello + + \ No newline at end of file