2019-10-12
Views
春天的靴子基本骨架
直接用 Spring Initializr生成



package com.wade.demo.web;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/v1/hellos")
public class HelloController {
@GetMapping("")
public String say() {
return "Hello World!";
}
}



server:
port: 8881
context-path: /
