spring-shell command line tool
74
命令行工具开发
help 打印帮助命令@ShellMethod("Display stuff.")
public String echo(int a, int b, int c) {
return String.format("You said a=%d, b=%d, c=%d", a, b, c);
}
shell:>echo 1 2 3
You said a=1, b=2, c=3
shell:>echo --a 1 --b 2 --c 3
You said a=1, b=2, c=3
shell:>echo --b 2 --c 3 --a 1
You said a=1, b=2, c=3
shell:>echo --a 1 2 3
You said a=1, b=2, c=3
shell:>echo 1 --c 3 2
You said a=1, b=2, c=3
Content type
Image
Digest
sha256:a9aaccfed…
Size
144.9 MB
Last updated
about 4 years ago
docker pull javawiki/spring-shell-demo:1.0.0