GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update Java Note · Seazean/JavaNote@8bd68a0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Java.md
  • Prog.md
  • SSM.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Java.md‎

Copy file name to clipboardExpand all lines: Java.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2865,7 +2865,7 @@ public class MyArraysDemo {
28652865
1. 导入包:`import java.util.Random`
28662866
2. 创建对象:`Random r = new Random()`
28672867
3. 随机整数:`int num = r.nextInt(10)`
2868-
* 解释:10 代表的是一个范围,如果括号写 10,产生的随机数就是 0 - 9,括号写 20 的随机数则是 0 - 19
2868+
* 解释:10 代表的是一个范围,如果括号写 10,产生的随机数就是 0 - 9,括号写 20 的随机数则是 0 - 19
28692869
* 获取 0 - 10:`int num = r.nextInt(10 + 1)`
28702870

28712871
4. 随机小数:`public double nextDouble()` 从范围 `0.0d` 至 `1.0d` (左闭右开),伪随机地生成并返回
Collapse file

‎Prog.md‎

Copy file name to clipboardExpand all lines: Prog.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3593,7 +3593,10 @@ public class TestFinal {
35933593

35943594
final 变量的赋值通过 putfield 指令来完成,在这条指令之后也会加入写屏障,保证在其它线程读到它的值时不会出现为 0 的情况
35953595

3596-
其他线程访问 final 修饰的变量**会复制一份放入栈中**,效率更高
3596+
其他线程访问 final 修饰的变量
3597+
3598+
* **复制一份放入栈中**直接访问,效率高
3599+
* 大于 short 最大值会将其复制到类的常量池,访问时从常量池获取
35973600

35983601

35993602

Collapse file

‎SSM.md‎

Copy file name to clipboardExpand all lines: SSM.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -14632,7 +14632,7 @@ ApplicationContextInitializer、SpringApplicationRunListener、CommandLineRunner
1463214632

1463314633
#### 文件类型
1463414634

14635-
SpringBoot 是基于约定的,很多配置都有默认值,如果想使用自己的配置替换默认配置,可以使用 application.properties 或者application.yml(application.yaml)进行配置
14635+
SpringBoot 是基于约定的,很多配置都有默认值,如果想使用自己的配置替换默认配置,可以使用 application.properties 或者 application.yml(application.yaml)进行配置
1463614636

1463714637
* 默认配置文件名称:application
1463814638
* 在同一级目录下优先级为:properties > yml > yaml

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.