Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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