摘要: 1.添加异常,在HelloController代码段内,添加异常,方便进行测试。 @RequestMapping("/hello") public String hello(Model m) throws Exception { m.addAttribute("now", DateFormat.ge 阅读全文
posted @ 2020-11-20 10:56 脑袋有点大 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 一、部署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 阅读全文
posted @ 2020-11-20 10:09 脑袋有点大 阅读(89) 评论(0) 推荐(0) 编辑