?? indexcontroller.java
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -