From b8992bdc0eb6e8a4aba8b6b3118e95dc3f95c1c8 Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Sun, 16 Oct 2016 10:38:14 -0400 Subject: [PATCH] Spring Boot reload automatically enabled --- pom.xml | 2 +- webgoat-container/pom.xml | 15 +++++++++++ .../src/main/resources/application.properties | 6 +++++ webgoat-lessons/pom.xml | 25 +++++++++++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4119de203b..7f62b53f96 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ org.springframework.boot spring-boot-starter-parent - 1.3.3.RELEASE + 1.4.1.RELEASE diff --git a/webgoat-container/pom.xml b/webgoat-container/pom.xml index 9acb25e7f1..22b50c4e59 100644 --- a/webgoat-container/pom.xml +++ b/webgoat-container/pom.xml @@ -216,6 +216,17 @@ + + org.springframework.boot + spring-boot-maven-plugin + + + org.springframework + springloaded + 1.2.0.RELEASE + + + @@ -232,6 +243,10 @@ org.springframework.boot spring-boot-starter-actuator + + org.springframework.boot + spring-boot-devtools + org.apache.tomcat.embed tomcat-embed-jasper diff --git a/webgoat-container/src/main/resources/application.properties b/webgoat-container/src/main/resources/application.properties index ea1a8fd241..f8406750fd 100644 --- a/webgoat-container/src/main/resources/application.properties +++ b/webgoat-container/src/main/resources/application.properties @@ -5,6 +5,7 @@ server.port=8080 logging.level.org.springframework=WARN +logging.level.org.springframework.boot.devtools=DEBUG spring.thymeleaf.cache=false spring.thymeleaf.content-type=text/html security.enable-csrf=false @@ -21,3 +22,8 @@ webgoat.database.connection.string=jdbc:hsqldb:mem:test # TODO_NB #webgoat.database.connection.string=jdbc:hsqldb:mem:${USER} webgoat.default.language=en + + +spring.devtools.restart.pollInterval=4000 +spring.devtools.livereload.enabled=true +spring.devtools.restart.enabled=true diff --git a/webgoat-lessons/pom.xml b/webgoat-lessons/pom.xml index 61bcafac63..03df7e9f39 100644 --- a/webgoat-lessons/pom.xml +++ b/webgoat-lessons/pom.xml @@ -64,6 +64,31 @@ + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-artifact + package + + copy + + + true + + + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.packaging} + + + ../../webgoat-container/target/classes/plugin_lessons + + + +