Spring STS-跑步“;“春运”;指令
我想在STS中使用“spring run”命令运行一个简单的groovy脚本 需要哪些扩展?我还安装了Grails、Groovy 2.3编译器和Groovy Eclipse MyApp.groovy:Spring STS-跑步“;“春运”;指令,spring,groovy,spring-tool-suite,Spring,Groovy,Spring Tool Suite,我想在STS中使用“spring run”命令运行一个简单的groovy脚本 需要哪些扩展?我还安装了Grails、Groovy 2.3编译器和Groovy Eclipse MyApp.groovy: @Controller class MyApp { @RequestMapping("/") @ResponseBody String message() { return "<h1>Hello World!</h1>" }
@Controller
class MyApp {
@RequestMapping("/")
@ResponseBody
String message() {
return "<h1>Hello World!</h1>"
}
}
@控制器
类MyApp{
@请求映射(“/”)
@应答器
字符串消息(){
返回“你好,世界!”
}
}
我想您正在谈论的命令的当前实现假定脚本名为“app.groovy”。因此,“MyApp.groovy”、“Foo.groovy”等不会被此启动器检测为可运行
参考资料:这个问题不清楚。你到底想做什么?有什么问题吗?