Spring Boot reload automatically enabled

This commit is contained in:
Nanne Baars
2016-10-16 10:38:14 -04:00
parent c72e8df532
commit b8992bdc0e
4 changed files with 47 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.3.RELEASE</version> <version>1.4.1.RELEASE</version>
</parent> </parent>
<licenses> <licenses>

View File

@ -216,6 +216,17 @@
</requiresUnpack> </requiresUnpack>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.0.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins> </plugins>
</build> </build>
@ -232,6 +243,10 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.tomcat.embed</groupId> <groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId> <artifactId>tomcat-embed-jasper</artifactId>

View File

@ -5,6 +5,7 @@ server.port=8080
logging.level.org.springframework=WARN logging.level.org.springframework=WARN
logging.level.org.springframework.boot.devtools=DEBUG
spring.thymeleaf.cache=false spring.thymeleaf.cache=false
spring.thymeleaf.content-type=text/html spring.thymeleaf.content-type=text/html
security.enable-csrf=false security.enable-csrf=false
@ -21,3 +22,8 @@ webgoat.database.connection.string=jdbc:hsqldb:mem:test
# TODO_NB # TODO_NB
#webgoat.database.connection.string=jdbc:hsqldb:mem:${USER} #webgoat.database.connection.string=jdbc:hsqldb:mem:${USER}
webgoat.default.language=en webgoat.default.language=en
spring.devtools.restart.pollInterval=4000
spring.devtools.livereload.enabled=true
spring.devtools.restart.enabled=true

View File

@ -64,6 +64,31 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-artifact</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<overWriteIfNewer>true</overWriteIfNewer>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<outputDirectory>../../webgoat-container/target/classes/plugin_lessons</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>