Snippets Collections
@RequestMapping(produces = [MediaType.TEXT_HTML_VALUE, CustomMediaType.TURBO_STREAM_VALUE])
suspend fun pinger(model: Model): String {
    model.addAttribute("pingTime", pingService.ping(hostname, port))
    return "ping.turbo-stream"
}
star

Mon Jan 18 2021 05:24:39 GMT+0000 (UTC)

#kotlin #springframework

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension