1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| package com.whyc.web;
|
| import org.springframework.stereotype.Controller;
| import org.springframework.web.bind.annotation.GetMapping;
|
| import javax.servlet.http.HttpServletRequest;
|
| @Controller
| public class MainController {
|
| @GetMapping("/")
| public String index(HttpServletRequest request) {
| request.setAttribute("ttt", "rrrrr");
| return "index";
| }
| }
|
|