摘要: package com.chitic.schedule.data.config.job; import lombok.extern.slf4j.Slf4j; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandle 阅读全文
posted @ 2021-02-27 10:34 卖火柴的小道士 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 1. 如何獲取時間 Calendar 提供了一个类方法 getInstance,以获得此类型的一个通用的对象。Calendar 的 getInstance 方法返回一个 Calendar 对象,其日历字段已由当前日期和时间初始化: ​ // 字符串轉時間 SimpleDateFormat forma 阅读全文
posted @ 2021-02-27 10:22 卖火柴的小道士 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1.饿汉式单例 package org.mlinge.s01; public class MySingleton { private static MySingleton instance = new MySingleton(); private MySingleton(){} public sta 阅读全文
posted @ 2021-01-02 16:06 卖火柴的小道士 阅读(119) 评论(0) 推荐(0) 编辑
摘要: package com.study.algorithm; import java.util.Scanner; public class BinarySearch { public static void main(String[] args) { /* System.out.println("請輸入 阅读全文
posted @ 2021-01-02 15:45 卖火柴的小道士 阅读(103) 评论(0) 推荐(0) 编辑