Skip to content

Instantly share code, notes, and snippets.

@sh0seo
Created August 12, 2019 15:18
Show Gist options
  • Save sh0seo/347bde458a32373b458ba4465f881eb3 to your computer and use it in GitHub Desktop.
Save sh0seo/347bde458a32373b458ba4465f881eb3 to your computer and use it in GitHub Desktop.
package com.example.demojsp.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class HomeController {
@GetMapping("/")
public String index(Model model) {
model.addAttribute("title", "Mossland.xyz");
return "index";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment