Skip to content

Commit e194254

Browse files
committed
style: fix linter
1 parent cf02e57 commit e194254

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/java/jvm/jvm-parameters-intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tag:
3939

4040
### 2.2.显式新生代内存(Young Generation)
4141

42-
根据[Oracle 官方文档](https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/sizing.html),在堆总可用内存配置完成之后,第二大影响因素是为 `Young Generation` 在堆内存所占的比例。默认情况下,YG 的最小大小为 1310 _MB_,最大大小为*无限制*
42+
根据[Oracle 官方文档](https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/sizing.html),在堆总可用内存配置完成之后,第二大影响因素是为 `Young Generation` 在堆内存所占的比例。默认情况下,YG 的最小大小为 1310 _MB_,最大大小为 _无限制_
4343

4444
一共有两种指定 新生代内存(Young Generation)大小的方法:
4545

docs/system-design/framework/mybatis/mybatis-interview.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ head:
2626
答:
2727

2828
- `${}`是 Properties 文件中的变量占位符,它可以用于标签属性值和 sql 内部,属于原样文本替换,可以替换任意内容,比如\${driver}会被原样替换为`com.mysql.jdbc. Driver`
29-
一个实例:根据参数按任意字段排序:
29+
30+
一个示例:根据参数按任意字段排序:
31+
3032
```sql
3133
select * from users order by ${orderCols}
3234
```
35+
3336
`orderCols`可以是 `name``name desc``name,sex asc`等,实现灵活的排序。
3437

3538
- `#{}`是 sql 的参数占位符,MyBatis 会将 sql 中的`#{}`替换为? 号,在 sql 执行前会使用 PreparedStatement 的参数设置方法,按序给 sql 的? 号占位符设置参数值,比如 ps.setInt(0, parameterValue),`#{item.name}` 的取值方式为使用反射从参数对象中获取 item 对象的 name 属性值,相当于 `param.getItem().getName()`

0 commit comments

Comments
 (0)