摘要:
1.添加异常,在HelloController代码段内,添加异常,方便进行测试。 @RequestMapping("/hello") public String hello(Model m) throws Exception { m.addAttribute("now", DateFormat.ge 阅读全文
摘要:
一、部署jar包 1.在项目目录下,输入mvn install 2.输入以下命令运行 java -jar target/demo_zhang-0.0.1-SNAPSHOT.jar 3.http://127.0.0.1:8080/hello 二、部署war包 1.application新加@Servl 阅读全文