Skip to content

Instantly share code, notes, and snippets.

@nwillc
Created July 8, 2018 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nwillc/0446474f98e0f8229409f8792f4c7ba6 to your computer and use it in GitHub Desktop.
Save nwillc/0446474f98e0f8229409f8792f4c7ba6 to your computer and use it in GitHub Desktop.
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestParam
@Controller
class StatusMapController {
@GetMapping("/status")
fun statusMap(model: Model, @RequestParam(defaultValue = "prod") env: String): String {
// ....
return "status"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment