原创 SpringBoot框架Scheduled註解 定時任務

@Scheduled(fixedDelay = 1000,initialDelay=1000) public void Task() { } @Scheduled(fixedRate=2000):上一次開始執行時間點後2秒再次執行; @

原创 POI讀取excel文檔

// <!--讀取excel文件--> // <dependency> // <groupId>org.apache.poi</groupId> //

原创 Java浮點型數據計算(摘抄)

import java.math.BigDecimal; //也不知道原文 入參Double.toString()有啥用 // 默認除法運算精度 private static final int DEF_DIV

原创 MYSQL8.0以上版本修改ROOT密碼

alter user'root'@'%' IDENTIFIED BY 'root';    update mysql.user set authentication_string='' where User = 'root'; 。

原创 解析導入的Excel

/** 需要區分excel 版本     捨棄 */ //        Workbook workbook = null; //        if (file.getOriginalFilename().endsWith(".xls"

原创 java獲取當年第一天

/** * 當前月第一天 * * @return 當前月第一天 */ public String getThisMonth() { // 獲取前月的第一天