Enabled WebApp POM
This commit is contained in:
1 parent
95d8c54fb5
commit
5d64432686
4 files changed
+25
-1
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.hoelele.demo.demo;
|
||||
package com.hoelee.demo;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.hoelee.demo.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
|
||||
@Controller
|
||||
@RequestMapping(value = "/admin")
|
||||
public class RootController {
|
||||
|
||||
@ResponseBody
|
||||
@GetMapping(value = {"","/"})
|
||||
public String index(){
|
||||
return "Hello world";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user