随笔分类 -  SpringMVC

摘要:1.使用ServletAPI实现转发 /* 使用HttpServletRequest对象实现请求转发 */ @RequestMapping("/httpServletRequest") public void method1(HttpServletRequest request, HttpServl 阅读全文
posted @ 2023-01-14 16:54 jsqup 阅读(12) 评论(0) 推荐(0) 编辑
摘要:作用域范围 |对象名称|作用范围| | | | |application|整个作用范围| |session|在当前会话中有效| |request|在当前请求中有效| |page|在当前页面有效| request/session/application作用域传值 package controller; 阅读全文
posted @ 2023-01-14 16:00 jsqup 阅读(11) 评论(0) 推荐(0) 编辑
摘要:|类型|处理的类型| | | | |RequestMapping|GET/POST| |GetMapping|GET| |PostMapping|POST| 阅读全文
posted @ 2023-01-13 15:54 jsqup 阅读(9) 评论(0) 推荐(0) 编辑
摘要:注入集合对象 <%-- Created by IntelliJ IDEA. User: 19413 Date: 2023/1/13 Time: 15:09 To change this template use File | Settings | File Templates. --%> <%@ p 阅读全文
posted @ 2023-01-13 15:29 jsqup 阅读(17) 评论(0) 推荐(0) 编辑
摘要:package controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.spring 阅读全文
posted @ 2023-01-13 15:08 jsqup 阅读(14) 评论(0) 推荐(0) 编辑
摘要:web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc 阅读全文
posted @ 2023-01-13 14:42 jsqup 阅读(12) 评论(0) 推荐(0) 编辑
摘要:创建项目 导入需要的jar包 对编译出现的jar包处理 整理项目架构 编写配置文件中的内容 web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns 阅读全文
posted @ 2023-01-13 14:29 jsqup 阅读(12) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示