Standalone should also run on the the WebGoat context root

This commit is contained in:
Nanne Baars
2016-09-11 20:50:12 +02:00
parent 8050bd52c4
commit 5460133a7d

View File

@ -57,7 +57,7 @@ public class Main {
void run() throws Exception {
String webappDirLocation = "webgoat-container/src/main/webapp/";
Tomcat tomcat = new Tomcat();
StandardContext ctx = (StandardContext) tomcat.addWebapp("/", new File(webappDirLocation).getAbsolutePath());
StandardContext ctx = (StandardContext) tomcat.addWebapp("/WebGoat", new File(webappDirLocation).getAbsolutePath());
Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
connector.setPort(port);