08 2021 档案
摘要:package com.sun.config; import com.sun.interceptors.TestInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.co
阅读全文
摘要:一、服务器从浏览器获取传过来的请求体 1. <form th:action="@{/testRequestBody}" method="post"> <input type="text" name="username"> <input type="text" name="password"> <in
阅读全文
摘要:1.连续内存分配 1.1 内存碎片 1.2 分区的动态分配 (1)首次适配 (2)最优适配 (3)最差适配 减少上面3中算法中产生的内存碎片的算法: a.压缩式碎片整理 b.交换式碎片整理 2.非连续内存分配 2.1 为什么需要非连续内存分配 连续分配内存的缺点 2.2 分段 2.3 分页 2.3.
阅读全文
摘要:1.图的表示方式 邻接矩阵: 邻接链表 2.图的遍历 2.1 广度优先 public void bfs(boolean[] isVisted,int target){ int u;//存储队列头元素 int w; System.out.println(target+" >"); isVisted[t
阅读全文
摘要:1. 2. 转发是发生在服务器内,重定向是发生在浏览器间的; 转发可以访问WEB-INFO下的内容,而重定向不行; 执行上面的代码,结果是,页面的地址栏中是“/testForWard”,显示的是success页面的内容 3. 执行这段代码,地址栏显示的是“/testThymeleafView”,显示
阅读全文
摘要://向application(ServletContext)域共享数据 @RequestMapping("/testApplication") public String testApplication(HttpSession session){ ServletContext application
阅读全文
摘要://向Session域共享数据 @RequestMapping("/testSession") public String testSession(HttpSession session){ session.setAttribute("testSessionScope","hello,Session
阅读全文
摘要:index.html 1 <!DOCTYPE html> 2 <html lang="en" xmlns:th="http://www.thymeleaf.org"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head>
阅读全文
摘要:<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>传参测试页面</title> </head> <body> <a th:href="@{
阅读全文

浙公网安备 33010602011771号