fisrst commit

Signed-off-by: Johannes Theiner <j.theiner@live.de>
This commit is contained in:
Johannes Theiner 2019-02-15 23:36:24 +01:00
commit 516996808d
3 changed files with 97 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.iml
.idea
.project

62
pom.xml Normal file
View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>BauDas Kundenkarten Verwaltung</name>
<groupId>de.hs-el.spm</groupId>
<artifactId>bauDas-kundenkarten</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<contributors>
<contributor>
<name>Johannes Theiner</name>
<email>johannes.theiner@informatik-emden.de</email>
<roles>
<role>Technisches Management</role>
<role>Server Admin</role>
</roles>
</contributor>
</contributors>
<issueManagement>
<system>YouTrack</system>
<url>https://youtrack.joethei.xyz/issues/SPM</url>
</issueManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>https://spm.joethei.space/manager/text</url>
<server>TomcatServer</server>
<path>/bauDas</path>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>nz.ac.waikato.cms.weka</groupId>
<artifactId>weka-stable</artifactId>
<version>3.8.3</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,32 @@
package de.hs_el.spm.bauDas;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
/**
* @author Johannes Theiner
* @version 0.1
* @since 0.1
*/
@WebServlet(value = "/")
public class HelloWorld extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
resp.setContentType("text/html");
PrintWriter out = resp.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Hello World!</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Hello World!</h1>");
out.println("</body>");
out.println("</html>");
}
}