摘要:
SpringBoot start https://start.aliyun.com 配置文件 配置文件的优先级:application.properties > application.yml > application.yaml yaml配置文件数据读取 lesson: SpringBoot se 阅读全文
posted @ 2022-07-24 16:32
ChingFun
阅读(135)
评论(0)
推荐(0)
使用enum定义枚举类(JDK 5.0) public class MyTest { public static void main(String[] args) { Season summer = Season.SUMMER; // toString():返回枚举类对象的名称 System.out 阅读全文
异常处理 一、异常体系结构 二 、常见异常类型 java.lang.Throwable java.lang.Error:一般不编写针对性的代码进行处理。 java.lang.Exception:可以进行异常的处理 编译时异常(checked) IOException FileNotFoundExce 阅读全文
数组 一、一维数组的使用 int[] arr1 = new int[3]; double arr2[] = { 1, 2, 3 }; char arr3[] = new char[] { 'a', 'b', 'c' }; // 不能指明长度 // 遍历数组 for (int i = 0; i < a 阅读全文