parent
232151c76f
commit
0db3dfdd5f
@ -1,5 +1,15 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
public class FirstController {
|
||||
|
||||
@RequestMapping("/first")
|
||||
public String first(Model model) {
|
||||
model.addAttribute("message", "Hello SpringMVC!");
|
||||
return "showFirst";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue