Enabled WebApp POM

This commit is contained in:
hoelee committed 2020-09-29 23:52:51 +08:00
1 parent 95d8c54fb5
commit 5d64432686
4 files changed
+25 -1

No files matched your search

View File
Whitespace-only changes.
+6
View File
@@ -35,6 +35,12 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.2.3.RELEASE</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
@@ -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";
}
}