Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: 整理项目
  • Loading branch information
dunwu committed Jan 29, 2024
commit 2b38ba816f1b800d8d41d1ebbbc1952d7865e37a
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.springframework.stereotype.Service;

/**
* @author 11123558
* @author <a href="mailto:forbreak@163.com">Zhang Peng</a>
* @date 2022-07-28
*/
@Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* 单元测试
* @author 11123558
* @author <a href="mailto:forbreak@163.com">Zhang Peng</a>
* @date 2022-07-28
*/
@RunWith(SpringJUnit4ClassRunner.class)
Expand Down
28 changes: 13 additions & 15 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
['meta', { name: 'theme-color', content: '#11a8cd' }], // 移动浏览器主题颜色

['meta', { name: 'wwads-cn-verify', content: 'mxqWx62nfQQ9ocT4e5DzISHzOWyF4s' }], // 广告相关,你可以去掉
['script', { src: 'https://cdn.wwads.cn/js/makemoney.js', type: 'text/javascript' }], // 广告相关,你可以去掉
['script', { src: 'https://cdn.wwads.cn/js/makemoney.js', type: 'text/javascript' }] // 广告相关,你可以去掉
],
markdown: {
// lineNumbers: true,
Expand All @@ -30,30 +30,28 @@ module.exports = {
themeConfig: {
nav: [
{ text: '首页', link: '/' },
{ text: 'JavaEE', link: '/01.JavaEE/' },
{ text: 'JavaEE', link: '/01.Java/02.JavaEE/' },
{
text: 'Java软件',
link: '/02.Java软件/',
link: '/01.Java/11.软件/',
items: [
{ text: 'Java构建', link: '/02.Java软件/01.Java构建/' },
{ text: 'Java IDE', link: '/02.Java软件/02.JavaIDE/' },
{ text: 'Java服务器', link: '/02.Java软件/03.Java服务器/' },
{ text: 'Java监控诊断', link: '/02.Java软件/04.Java监控诊断/' }
{ text: 'Java 构建', link: '/01.Java/11.软件/01.构建/' },
{ text: 'Java IDE', link: '/01.Java/11.软件/02.IDE/' },
{ text: 'Java 监控诊断', link: '/01.Java/11.软件/03.监控诊断/' }
]
},
{
text: 'Java工具',
link: '/03.Java工具/',
link: '/01.Java/12.工具/',
items: [
{ text: 'Java序列化工具', link: '/03.Java工具/01.Java序列化工具/' },
{ text: 'JavaBean工具', link: '/03.Java工具/02.JavaBean工具/' },
{ text: 'Java模板引擎', link: '/03.Java工具/03.Java模板引擎/' },
{ text: 'Java测试工具', link: '/03.Java工具/04.Java测试工具/' },
{ text: '其他', link: '/03.Java工具/05.其他Java工具/' }
{ text: 'Java IO 工具', link: '/01.Java/12.工具/01.IO/' },
{ text: 'JavaBean 工具', link: '/01.Java/12.工具/02.JavaBean/' },
{ text: 'Java 模板引擎', link: '/01.Java/12.工具/03.模板引擎/' },
{ text: 'Java 测试工具', link: '/01.Java/12.工具/04.测试/' }
]
},
{ text: 'Java框架', link: '/04.Java框架/' },
{ text: 'Java中间件', link: '/05.Java中间件/' },
{ text: 'Java框架', link: '/01.Java/13.框架/' },
{ text: 'Java中间件', link: '/01.Java/14.中间件/' },
{
text: '✨ Java系列',
ariaLabel: 'Java',
Expand Down
Binary file removed docs/.vuepress/public/img/EB-logo.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/bg.jpeg
Binary file not shown.
Binary file removed docs/.vuepress/public/img/bg.jpg
Binary file not shown.
Binary file removed docs/.vuepress/public/img/gif/猫1.gif
Binary file not shown.
Binary file removed docs/.vuepress/public/img/gif/猫2.gif
Binary file not shown.
Binary file removed docs/.vuepress/public/img/gif/猫3.gif
Binary file not shown.
Binary file removed docs/.vuepress/public/img/gif/猫4.gif
Binary file not shown.
Binary file removed docs/.vuepress/public/img/panda-waving.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/思维导图.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/数据库.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/数据结构.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/服务器.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/机器学习.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/算法.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/系统.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/系统分析.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/编程.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/网络技术.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/计算机网络.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/软件开发.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/面向对象.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/png/项目管理.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/python.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/ui.png
Binary file not shown.
Binary file removed docs/.vuepress/public/img/web.png
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: JavaWeb 之 Servlet 指南
categories:
- 编程
date: 2020-08-24 19:41:46
order: 01
categories:
- Java
- JavaEE
- JavaWeb
tags:
tags:
- Java
- JavaWeb
- Servlet
abbrlink: 2ce8dedd
date: 2020-08-24 19:41:46
permalink: /pages/be093b/
permalink: /pages/e98894/
---

# JavaWeb 之 Servlet 指南
Expand Down Expand Up @@ -310,4 +310,4 @@ Apache Tomcat/5.5.29
## 参考资料

- [深入拆解 Tomcat & Jetty](https://time.geekbang.org/column/intro/100027701)
- [Java Web 整合开发王者归来](https://book.douban.com/subject/4189495/)
- [Java Web 整合开发王者归来](https://book.douban.com/subject/4189495/)
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: JavaWeb 之 Jsp 指南
categories:
- 编程
date: 2020-02-07 23:04:47
order: 02
categories:
- Java
- JavaEE
- JavaWeb
tags:
tags:
- Java
- JavaWeb
- JSP
abbrlink: 339b3115
date: 2020-02-07 23:04:47
permalink: /pages/6bbb16/
permalink: /pages/8cc787/
---

# JavaWeb 之 Jsp 指南
Expand All @@ -21,7 +21,7 @@ permalink: /pages/6bbb16/

`JSP`全称`Java Server Pages`,是一种动态网页开发技术。

它使用 JSP 标签在 HTML 网页中插入 Java 代码。标签通常以`<%`开头以`%>`结束。
它使用 JSP 标签在 HTML 网页中插入 Java 代码。标签通常以 `<%` 开头以 `%>` 结束。

JSP 是一种 Java servlet,主要用于实现 Java web 应用程序的用户界面部分。网页开发者们通过结合 HTML 代码、XHTML 代码、XML 元素以及嵌入 JSP 操作和命令来编写 JSP。

Expand Down Expand Up @@ -334,14 +334,14 @@ pageEncoding="UTF-8"%>

不同情况下使用注释的语法规则:

| **语法** | 描述 |
| ---------------- | ----------------------------------------------------- |
| `<%-- 注释 --%>` | JSP 注释,注释内容不会被发送至浏览器甚至不会被编译 |
| **语法** | 描述 |
| ---------------- |-------------------------------|
| `<%-- 注释 --%>` | JSP 注释,注释内容不会被发送至浏览器甚至不会被编译 |
| `<!-- 注释 -->` | HTML 注释,通过浏览器查看网页源代码时可以看见注释内容 |
| `<%` | 代表静态 <%常量 |
| `%>` | 代表静态 %> 常量 |
| `'` | 在属性中使用的单引号 |
| `"` | 在属性中使用的双引号 |
| `<%` | 代表静态 `<%` 常量 |
| `%>` | 代表静态 `%>` 常量 |
| `'` | 在属性中使用的单引号 |
| `"` | 在属性中使用的双引号 |

### 控制语句

Expand Down Expand Up @@ -471,23 +471,23 @@ JSP 支持所有 Java 逻辑和算术运算符。

下表罗列出了 JSP 常见运算符,优先级从高到底:

| **类别** | **操作符** | **结合性** |
| --------- | -------------------------------- | ---------- | ------ | ------ |
| 后缀 | `() [] .` (点运算符) | 左到右 |
| 一元 | `++ - - ! ~` | 右到左 |
| 可乘性 | `* / %` | 左到右 |
| 可加性 | `+ -` | 左到右 |
| 移位 | `>> >>> <<` | 左到右 |
| 关系 | `> >= < <=` | 左到右 |
| 相等/不等 | `== !=` | 左到右 |
| 位与 | `&` | 左到右 |
| 位异或 | `^` | 左到右 |
| 位或 | ` | ` | 左到右 |
| 逻辑与 | `&&` | 左到右 |
| 逻辑或 | ` | | ` | 左到右 |
| 条件判断 | `?:` | 右到左 |
| 赋值 | `= += -= \*= /= %= >>= <<= &= ^= | =` | 右到左 |
| 逗号 | `,` | 左到右 |
| **类别** | **操作符** | **结合性** |
| --------- | ------------------------------------- | ---------- |
| 后缀 | `() [] .` (点运算符) | 左到右 |
| 一元 | `++ - - ! ~` | 右到左 |
| 可乘性 | `* / %` | 左到右 |
| 可加性 | `+ -` | 左到右 |
| 移位 | `>> >>> <<` | 左到右 |
| 关系 | `> >= < <=` | 左到右 |
| 相等/不等 | `== !=` | 左到右 |
| 位与 | `&` | 左到右 |
| 位异或 | `^` | 左到右 |
| 位或 | `|` | 左到右 |
| 逻辑与 | `&&` | 左到右 |
| 逻辑或 | `| |` | 左到右 |
| 条件判断 | `?:` | 右到左 |
| 赋值 | `= += -= \*= /= %= >>= <<= &= ^= | =` | 右到左 |
| 逗号 | `,` | 左到右 |

### JSP 字面量

Expand Down Expand Up @@ -1354,7 +1354,7 @@ Apache Tomcat 安装 JSTL 库步骤如下:
</web-app>
```

使用任何库,你必须在每个 JSP 文件中的头部包含 **<taglib>** 标签。
使用任何库,你必须在每个 JSP 文件中的头部包含 **`<taglib>`** 标签。

### 核心标签

Expand All @@ -1364,22 +1364,22 @@ Apache Tomcat 安装 JSTL 库步骤如下:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
```

| 标签 | 描述 |
| :---------------------------------------------------------------------- | :-------------------------------------------------------------------------- |
| [`<c:out>`](http://www.runoob.com/jsp/jstl-core-out-tag.html) | 用于在 JSP 中显示数据,就像<%= ... > |
| [`<c:set>`](http://www.runoob.com/jsp/jstl-core-set-tag.html) | 用于保存数据 |
| [`<c:remove>`](http://www.runoob.com/jsp/jstl-core-remove-tag.html) | 用于删除数据 |
| [`<c:catch>`](http://www.runoob.com/jsp/jstl-core-catch-tag.html) | 用来处理产生错误的异常状况,并且将错误信息储存起来 |
| [`<c:if>`](http://www.runoob.com/jsp/jstl-core-if-tag.html) | 与我们在一般程序中用的 if 一样 |
| [`<c:choose>`](http://www.runoob.com/jsp/jstl-core-choose-tag.html) | 本身只当做<c:when>和<c:otherwise>的父标签 |
| [`<c:when>`](http://www.runoob.com/jsp/jstl-core-choose-tag.html) | <c:choose>的子标签,用来判断条件是否成立 |
| [`<c:otherwise>`](http://www.runoob.com/jsp/jstl-core-choose-tag.html) | <c:choose>的子标签,接在<c:when>标签后,当<c:when>标签判断为 false 时被执行 |
| [`<c:import>`](http://www.runoob.com/jsp/jstl-core-import-tag.html) | 检索一个绝对或相对 URL,然后将其内容暴露给页面 |
| [`<c:forEach>`](http://www.runoob.com/jsp/jstl-core-foreach-tag.html) | 基础迭代标签,接受多种集合类型 |
| [`<c:forTokens>`](http://www.runoob.com/jsp/jstl-core-foreach-tag.html) | 根据指定的分隔符来分隔内容并迭代输出 |
| [`<c:param>`](http://www.runoob.com/jsp/jstl-core-param-tag.html) | 用来给包含或重定向的页面传递参数 |
| [`<c:redirect>`](http://www.runoob.com/jsp/jstl-core-redirect-tag.html) | 重定向至一个新的 URL. |
| [`<c:url>`](http://www.runoob.com/jsp/jstl-core-url-tag.html) | 使用可选的查询参数来创造一个 URL |
| 标签 | 描述 |
| :---------------------------------------------------------------------- |:------------------------------------------------------------------|
| [`<c:out>`](http://www.runoob.com/jsp/jstl-core-out-tag.html) | 用于在 JSP 中显示数据,就像<%= ... > |
| [`<c:set>`](http://www.runoob.com/jsp/jstl-core-set-tag.html) | 用于保存数据 |
| [`<c:remove>`](http://www.runoob.com/jsp/jstl-core-remove-tag.html) | 用于删除数据 |
| [`<c:catch>`](http://www.runoob.com/jsp/jstl-core-catch-tag.html) | 用来处理产生错误的异常状况,并且将错误信息储存起来 |
| [`<c:if>`](http://www.runoob.com/jsp/jstl-core-if-tag.html) | 与我们在一般程序中用的 if 一样 |
| [`<c:choose>`](http://www.runoob.com/jsp/jstl-core-choose-tag.html) | 本身只当做 `<c:when>` 和 `<c:otherwise>` 的父标签 |
| [`<c:when>`](http://www.runoob.com/jsp/jstl-core-choose-tag.html) | `<c:choose>` 的子标签,用来判断条件是否成立 |
| [`<c:otherwise>`](http://www.runoob.com/jsp/jstl-core-choose-tag.html) | `<c:choose>` 的子标签,接在 `<c:when>` 标签后,当 `<c:when>` 标签判断为 false 时被执行 |
| [`<c:import>`](http://www.runoob.com/jsp/jstl-core-import-tag.html) | 检索一个绝对或相对 URL,然后将其内容暴露给页面 |
| [`<c:forEach>`](http://www.runoob.com/jsp/jstl-core-foreach-tag.html) | 基础迭代标签,接受多种集合类型 |
| [`<c:forTokens>`](http://www.runoob.com/jsp/jstl-core-foreach-tag.html) | 根据指定的分隔符来分隔内容并迭代输出 |
| [`<c:param>`](http://www.runoob.com/jsp/jstl-core-param-tag.html) | 用来给包含或重定向的页面传递参数 |
| [`<c:redirect>`](http://www.runoob.com/jsp/jstl-core-redirect-tag.html) | 重定向至一个新的 URL. |
| [`<c:url>`](http://www.runoob.com/jsp/jstl-core-url-tag.html) | 使用可选的查询参数来创造一个 URL |

### 格式化标签

Expand Down Expand Up @@ -1438,18 +1438,18 @@ JSTL XML 标签库提供了创建和操作 XML 文档的标签。引用 XML 标

下载地址: <http://xml.apache.org/xalan-j/index.html>

| 标签 | 描述 |
| :----------------------------------------------------------------------- | :---------------------------------------------------------- |
| [`<x:out>`](http://www.runoob.com/jsp/jstl-xml-out-tag.html) | 与<%= ... >,类似,不过只用于 XPath 表达式 |
| [`<x:parse>`](http://www.runoob.com/jsp/jstl-xml-parse-tag.html) | 解析 XML 数据 |
| [`<x:set>`](http://www.runoob.com/jsp/jstl-xml-set-tag.html) | 设置 XPath 表达式 |
| [`<x:if>`](http://www.runoob.com/jsp/jstl-xml-if-tag.html) | 判断 XPath 表达式,若为真,则执行本体中的内容,否则跳过本体 |
| [`<x:forEach>`](http://www.runoob.com/jsp/jstl-xml-foreach-tag.html) | 迭代 XML 文档中的节点 |
| [`<x:choose>`](http://www.runoob.com/jsp/jstl-xml-choose-tag.html) | <x:when>和<x:otherwise>的父标签 |
| [`<x:when>`](http://www.runoob.com/jsp/jstl-xml-choose-tag.html) | <x:choose>的子标签,用来进行条件判断 |
| [`<x:otherwise>`](http://www.runoob.com/jsp/jstl-xml-choose-tag.html) | <x:choose>的子标签,当<x:when>判断为 false 时被执行 |
| [`<x:transform>`](http://www.runoob.com/jsp/jstl-xml-transform-tag.html) | 将 XSL 转换应用在 XML 文档中 |
| [`<x:param>`](http://www.runoob.com/jsp/jstl-xml-param-tag.html) | 与<x:transform>共同使用,用于设置 XSL 样式表 |
| 标签 | 描述 |
| :----------------------------------------------------------------------- |:----------------------------------------------|
| [`<x:out>`](http://www.runoob.com/jsp/jstl-xml-out-tag.html) | 与 `<%= ... >`,类似,不过只用于 XPath 表达式 |
| [`<x:parse>`](http://www.runoob.com/jsp/jstl-xml-parse-tag.html) | 解析 XML 数据 |
| [`<x:set>`](http://www.runoob.com/jsp/jstl-xml-set-tag.html) | 设置 XPath 表达式 |
| [`<x:if>`](http://www.runoob.com/jsp/jstl-xml-if-tag.html) | 判断 XPath 表达式,若为真,则执行本体中的内容,否则跳过本体 |
| [`<x:forEach>`](http://www.runoob.com/jsp/jstl-xml-foreach-tag.html) | 迭代 XML 文档中的节点 |
| [`<x:choose>`](http://www.runoob.com/jsp/jstl-xml-choose-tag.html) | `<x:when>` 和 `<x:otherwise>` 的父标签 |
| [`<x:when>`](http://www.runoob.com/jsp/jstl-xml-choose-tag.html) | `<x:choose>` 的子标签,用来进行条件判断 |
| [`<x:otherwise>`](http://www.runoob.com/jsp/jstl-xml-choose-tag.html) | `<x:choose>` 的子标签,当 `<x:when>` 判断为 false 时被执行 |
| [`<x:transform>`](http://www.runoob.com/jsp/jstl-xml-transform-tag.html) | 将 XSL 转换应用在 XML 文档中 |
| [`<x:param>`](http://www.runoob.com/jsp/jstl-xml-param-tag.html) | 与 `<x:transform>` 共同使用,用于设置 XSL 样式表 |

### JSTL 函数

Expand Down Expand Up @@ -1650,7 +1650,7 @@ public class HelloTag extends SimpleTagSupport {
}
```

属性的名称是"message",所以 setter 方法是的 setMessage()。现在让我们在 TLD 文件中使用的<attribute>元素添加此属性:
属性的名称是"message",所以 setter 方法是的 setMessage()。现在让我们在 TLD 文件中使用的 `<attribute>` 元素添加此属性:

```
<taglib>
Expand Down Expand Up @@ -1728,4 +1728,4 @@ This is custom tag
<type>java.util.Date</type>
</attribute>
.....
```
```
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: JavaWeb 之 Filter 和 Listener
categories:
- 编程
date: 2020-08-24 19:41:46
order: 03
categories:
- Java
- JavaEE
- JavaWeb
tags:
tags:
- Java
- JavaWeb
- Filter
- Listener
abbrlink: 9eb5517a
date: 2020-08-24 19:41:46
permalink: /pages/5ecb29/
permalink: /pages/82df5f/
---

# JavaWeb 之 Filter 和 Listener
Expand Down Expand Up @@ -215,4 +215,4 @@ Filter 和 Listener 的本质区别:
## 参考资料

- [深入拆解 Tomcat & Jetty](https://time.geekbang.org/column/intro/100027701)
- [Java Web 整合开发王者归来](https://book.douban.com/subject/4189495/)
- [Java Web 整合开发王者归来](https://book.douban.com/subject/4189495/)
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: JavaWeb 之 Cookie 和 Session
categories:
- 编程
date: 2020-08-24 19:41:46
order: 04
categories:
- Java
- JavaEE
- JavaWeb
tags:
tags:
- Java
- JavaWeb
- Cookie
- Session
abbrlink: bb93a37b
date: 2020-08-24 19:41:46
permalink: /pages/e61883/
permalink: /pages/c46bff/
---

# JavaWeb 之 Cookie 和 Session
Expand Down Expand Up @@ -587,4 +587,4 @@ Cookie 需要浏览器支持才能使用。
### 跨域名

- Cookie 支持跨域名。
- Session 不支持跨域名。
- Session 不支持跨域名。
Loading