01 2023 档案

摘要:![](https://img2023.cnblogs.com/blog/2487693/202301/2487693-20230128093118668-546104230.png) ![](https://img2023.cnblogs.com/blog/2487693/202301/2487693-20230128093209119-1544829884.png) ![](https://i 阅读全文
posted @ 2023-01-28 09:34 jsqup 阅读(11) 评论(0) 推荐(0) 编辑
摘要:1.#{}和{}的区别 #{} 数据类型检查: 若检测到字符串类型,就加上引号; 若检测到数值类型,就不加引号。 安全检查: 若变量的值带有引号,会对引号进行转义处理,这样可以防止sql注入。{} 将传入的数据直接进行sql拼接,不会加引号 可以用来表示表名select ${columns} 阅读全文
posted @ 2023-01-17 15:10 jsqup 阅读(8) 评论(0) 推荐(0) 编辑
摘要: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) 编辑
摘要:资料来源: https://www.cnblogs.com/diffx/p/10611082.html#label4 阅读全文
posted @ 2023-01-12 11:41 jsqup 阅读(4) 评论(0) 推荐(0) 编辑

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