Introduced stanalone project which allows us to pass arguments to the Tomcat instance (eg port, address)

This commit is contained in:
Nanne Baars
2016-09-09 08:11:04 +02:00
parent 56bad8e087
commit b250af3564
7 changed files with 230 additions and 1 deletions

View File

@ -0,0 +1,31 @@
# WebGoat standalone runner
## Introduction
This project is aimed to be the replacement for the exec-war, it contains
a simple Main.class which will start an embedded Tomcat server.
This makes it easier to change the server address and the portnumber for example.
It kind of works in the same way Spring Boot starts an embedded Tomcat server.
## Usage
For the first time make sure you run a complete build:
```Shell
mvn clean install
```
Open up your favourite IDE and run the Main.class which will start the
embedded Tomcat server.
Or in a shell:
```Shell
java -jar webgoat-standalone-<<version>>-exec.jar
```
The following command line options are available:
```
-a, --address Specify the server address, like 192.168.0.1 (default localhost)
-p, --port Specify on which port the server should run (default 6047)
```