提交 047f5210 编写于 作者: ThinkPet's avatar ThinkPet

上传新文件

上级 2fab32df
package com.test;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class TestApi {
@GetMapping("/test")
@ResponseBody
public String t1(){
return "123 ... docker-springboot-demo running!";
}
@GetMapping(value = {"/","index"})
public String index(){
return "index";
}
@GetMapping("/upfile")
public String t2(){
return "upfile";
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册