[JAVA-9616] Add simple demo application for mvn wrapper
This commit is contained in:
parent
9b8a5a0fa7
commit
7728df176e
|
@ -101,7 +101,7 @@
|
||||||
<artifactId>maven-failsafe-plugin</artifactId>
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
<version>2.18</version>
|
<version>2.18</version>
|
||||||
<executions>
|
<executions>
|
||||||
<!-- Invokes both the integration-test and the verify goals of the Failsafe Maven
|
<!-- Invokes both the integration-test and the verify goals of the Failsafe Maven
|
||||||
plugin -->
|
plugin -->
|
||||||
<execution>
|
<execution>
|
||||||
<id>integration-tests</id>
|
<id>integration-tests</id>
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
<goal>verify</goal>
|
<goal>verify</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- Skips integration tests if the value of skip.integration.tests property
|
<!-- Skips integration tests if the value of skip.integration.tests property
|
||||||
is true -->
|
is true -->
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/ExternalPropertyFileLoaderIntegrationTest.java</include>
|
<include>**/ExternalPropertyFileLoaderIntegrationTest.java</include>
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- The main class to start by executing java -jar -->
|
<!-- The main class to start by executing java -jar -->
|
||||||
<start-class>com.baeldung.boot.Application</start-class>
|
<start-class>com.baeldung.wrapper.DemoApplication</start-class>
|
||||||
<jquery.version>3.1.1</jquery.version>
|
<jquery.version>3.1.1</jquery.version>
|
||||||
<bootstrap.version>3.3.7-1</bootstrap.version>
|
<bootstrap.version>3.3.7-1</bootstrap.version>
|
||||||
<jpa.version>2.2</jpa.version>
|
<jpa.version>2.2</jpa.version>
|
||||||
|
@ -195,4 +195,4 @@
|
||||||
<httpclient.version>4.5.8</httpclient.version>
|
<httpclient.version>4.5.8</httpclient.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package com.baeldung.wrapper;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
@SpringBootApplication(scanBasePackages = { "com.baeldung" })
|
||||||
|
public class DemoApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(DemoApplication.class, args);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.baeldung.wrapper;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class DemoController {
|
||||||
|
|
||||||
|
@GetMapping(value = "/demo")
|
||||||
|
public String demo(Model model) {
|
||||||
|
return "index";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue