1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #2254 from Mister-Hope/main

feat: bump deps
This commit is contained in:
Guide 2024-02-06 16:14:43 +08:00 committed by GitHub
commit 6eaf13c08d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1213 additions and 1302 deletions

View File

@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm nano-staged

View File

@ -1,3 +1,4 @@
import { viteBundler } from "@vuepress/bundler-vite";
import { defineUserConfig } from "vuepress";
import theme from "./theme.js";
@ -53,6 +54,8 @@ export default defineUserConfig({
],
],
bundler: viteBundler(),
theme,
pagePatterns: ["**/*.md", "!**/*.snippet.md", "!.vuepress", "!node_modules"],

View File

@ -1,6 +1,5 @@
import { getDirname, path } from "@vuepress/utils";
import { getDirname, path } from "vuepress/utils";
import { hopeTheme } from "vuepress-theme-hope";
import { componentsPlugin } from "vuepress-plugin-components";
import navbar from "./navbar.js";
import sidebar from "./sidebar/index.js";
@ -30,15 +29,7 @@ export default hopeTheme({
'<a href="https://beian.miit.gov.cn/" target="_blank">鄂ICP备2020015769号-1</a>',
displayFooter: true,
pageInfo: [
"Author",
"Category",
"Tag",
// "Date",
"Original",
"Word",
"ReadingTime",
],
pageInfo: ["Author", "Category", "Tag", "Original", "Word", "ReadingTime"],
blog: {
intro: "/about-the-author/",
@ -72,7 +63,9 @@ export default hopeTheme({
],
},
},
blog: true,
copyright: {
author: "JavaGuide(javaguide.cn)",
license: "MIT",

View File

@ -39,7 +39,7 @@ tag:
### 2.2.显式新生代内存(Young Generation)
根据[Oracle 官方文档](https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/sizing.html),在堆总可用内存配置完成之后,第二大影响因素是为 `Young Generation` 在堆内存所占的比例。默认情况下YG 的最小大小为 1310 _MB_,最大大小为*无限制*
根据[Oracle 官方文档](https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/sizing.html),在堆总可用内存配置完成之后,第二大影响因素是为 `Young Generation` 在堆内存所占的比例。默认情况下YG 的最小大小为 1310 _MB_,最大大小为 _无限制_
一共有两种指定 新生代内存(Young Generation)大小的方法:

View File

@ -26,10 +26,13 @@ head:
答:
- `${}`是 Properties 文件中的变量占位符,它可以用于标签属性值和 sql 内部,属于原样文本替换,可以替换任意内容,比如\${driver}会被原样替换为`com.mysql.jdbc. Driver`
一个实例:根据参数按任意字段排序:
一个示例:根据参数按任意字段排序:
```sql
select * from users order by ${orderCols}
```
`orderCols`可以是 `name``name desc``name,sex asc`等,实现灵活的排序。
- `#{}`是 sql 的参数占位符MyBatis 会将 sql 中的`#{}`替换为? 号,在 sql 执行前会使用 PreparedStatement 的参数设置方法,按序给 sql 的? 号占位符设置参数值,比如 ps.setInt(0, parameterValue)`#{item.name}` 的取值方式为使用反射从参数对象中获取 item 对象的 name 属性值,相当于 `param.getItem().getName()`

View File

@ -12,31 +12,27 @@
"lint": "pnpm lint:prettier && pnpm lint:md",
"lint:md": "markdownlint-cli2 '**/*.md'",
"lint:prettier": "prettier --check --write .",
"prepare": "husky install",
"prepare": "husky",
"update": "pnpm dlx vp-update"
},
"nano-staged": {
"**/*": "prettier --write --ignore-unknown",
".md": "markdownlint-cli2"
},
"packageManager": "pnpm@8.13.1",
"packageManager": "pnpm@8.15.1",
"dependencies": {
"@vuepress/client": "2.0.0-rc.0",
"@vuepress/plugin-search": "2.0.0-rc.0",
"@vuepress/utils": "2.0.0-rc.0",
"husky": "8.0.3",
"markdownlint-cli2": "0.11.0",
"@vuepress/bundler-vite": "2.0.0-rc.6",
"@vuepress/plugin-copyright": "2.0.0-rc.11",
"@vuepress/plugin-feed": "2.0.0-rc.11",
"@vuepress/plugin-search": "2.0.0-rc.11",
"husky": "9.0.10",
"markdownlint-cli2": "0.12.1",
"mathjax-full": "3.2.2",
"nano-staged": "0.8.0",
"nodejs-jieba": "0.1.2",
"prettier": "3.1.1",
"vue": "^3.4.13",
"vuepress": "2.0.0-rc.0",
"vuepress-plugin-copyright2": "2.0.0-rc.11",
"vuepress-plugin-feed2": "2.0.0-rc.11",
"vuepress-theme-hope": "2.0.0-rc.11"
},
"devDependencies": {
"vuepress-plugin-components": "2.0.0-rc.11"
"prettier": "3.2.5",
"vue": "3.4.15",
"vuepress": "2.0.0-rc.6",
"vuepress-theme-hope": "2.0.0-rc.22"
}
}

2459
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff