提交 5b7ef799 authored 作者: 黄夏豪's avatar 黄夏豪

合并分支 'dev' 到 'release'

新增了 说hello的功能 查看合并请求 !1
package com.tykj.jenkins_test.controller;
import com.sun.javafx.binding.StringFormatter;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/index")
public class HelloWorkController {
@GetMapping("/sayhello")
public String saveHello(String name){
if (StringUtils.isEmpty(name)){
name = "custom";
}
return StringFormatter.format("hello world , hello %s",name).getValue();
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论