Enabled WebApp POM

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

0
nbactions.tmp Normal file
View File

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>

View File

@@ -1,4 +1,4 @@
package com.hoelele.demo.demo;
package com.hoelee.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

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