[JAVA-9616] Add simple demo application for mvn wrapper
This commit is contained in:
+12
@@ -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);
|
||||
}
|
||||
}
|
||||
+15
@@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user