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

修复了一个在openjdk上无法运行的BUG

上级 df5ff749
......@@ -27,6 +27,9 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
......
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;
......@@ -15,6 +14,8 @@ public class HelloWorkController {
if (StringUtils.isEmpty(name)){
name = "custom";
}
return StringFormatter.format("hello world , hello %s",name).getValue();
System.out.println("111111");
return String.format("hello world , hello %s",name);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论