Merge pull request #11771 from hkhan/JAVA-9616-update-maven-wrapper-code

[JAVA-9616] Add simple demo application for mvn wrapper
This commit is contained in:
kwoyke 2022-02-04 17:51:41 +01:00 committed by GitHub
commit b9174fb3f4
3 changed files with 31 additions and 4 deletions

View File

@ -186,7 +186,7 @@
<properties>
<!-- 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>
<bootstrap.version>3.3.7-1</bootstrap.version>
<jpa.version>2.2</jpa.version>

View File

@ -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);
}
}

View File

@ -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";
}
}