Skip to content

Instantly share code, notes, and snippets.

@jordkris
Created August 5, 2021 00:59
Show Gist options
  • Save jordkris/df51bb4f365f9310ce21daace99e142b to your computer and use it in GitHub Desktop.
Save jordkris/df51bb4f365f9310ce21daace99e142b to your computer and use it in GitHub Desktop.
package com.example.myproject.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class DemoController<ModelMapper> {
private ModelMapper modelMapper;
@GetMapping("/")
public String index(Model model) {
return "index";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment