59.1 使用CLI运行应用
@RestController
class WebApplication {
@RequestMapping("/")
String home() {
"Hello World!"
}
}$ spring run hello.groovy$ spring run hello.groovy -- --server.port=9000$ JAVA_OPTS=-Xmx1024m spring run hello.groovyLast updated
Was this helpful?