提交 1ee8b060 authored 作者: 黄夏豪's avatar 黄夏豪

合并分支 'dev' 到 'master'

Dev 查看合并请求 !2
......@@ -27,6 +27,9 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
......
package com.tykj.jenkins_test.controller;
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";
}
System.out.println("111111");
return String.format("hello world , hello %s",name);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论