Skip to content

Instantly share code, notes, and snippets.

@kzdelarec
Created June 29, 2020 12:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kzdelarec/a4e69ce8c9da619597230fec52c77e67 to your computer and use it in GitHub Desktop.
package com.example.blog
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.ui.set
import org.springframework.web.bind.annotation.GetMapping
@Controller
class HtmlController {
@GetMapping("/blog")
fun showBlogSite(model: Model): String {
model["title"] = "Blog"
return "blog"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment