indexcontroller.java
来自「extjs sample with spring」· Java 代码 · 共 29 行
JAVA
29 行
package demo.web;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.Date;
/**
* Simple Index controller
* @version 1.0
*/
@Controller
public class IndexController {
@RequestMapping("/index.htm")
public ModelMap index() throws Exception {
ModelMap map = new ModelMap();
Date now = new Date();
map.addAttribute("date", now);
return map;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?