原创 java——多線程之線程池

package thread; import com.google.common.util.concurrent.ThreadFactoryBuilder; import java.util.concurrent.ArrayBloc

原创 Spring security——ResourceServerSecurityConfigure

import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.sp

原创 Winform中DataGridView顯示行號,設置行和列的顏色

 首先設置dataGridView的RowPostPaint事件,然後添加如下代碼:         private void dataGridView1_RowPostPaint(object sender, DataGridView

原创 DEV中RibbonForm作爲父窗體,同一子窗體只打開一次

目標:將RibbonForm作爲父窗體,通過自身的button單擊事件,打開子窗體Form1和Form2,並限定子窗體只能打開一次。   步驟: 1、在VS環境下,文件-新建-項目-windows窗體應用程序,這樣默認就創建了一個winf

原创 java——多線程之線程安全

public class App { public static void main(String[] args) { ThreadSafe t=new ThreadSafe(); Thread aThread=new Thr

原创 SVN——代碼管理

一、上傳代碼 1、SVN服務器新建一個目錄 http://smcsvn.xx.com/svn/project_name 訪問該目錄會看到如下     branches/     tags/     trunk/ 2、項目代碼上傳 代碼

原创 gradle編譯項目報錯Execution failed for task ':compileJava'.

原因:testCompile group: 'org.ldaptive', name: 'ldaptive-unboundid', version: '1.1.0' 改爲          compile group: 'org.ldap

原创 Java——hashCode 與 equals

hashCode 與 equals (重要) 面試官可能會問你:“你重寫過 hashcode 和 equals 麼,爲什麼重寫equals時必須重寫hashCode方法?” hashCode()介紹 hashCode() 的作用是獲

原创 sqlserver——按時間間隔對數據採樣查詢

原數據爲每10秒寫入一條新數據 查詢歷史記錄時要求每間隔10分鐘取一個樣點,查過去10小時的數據 SQL語句: declare @endDate datetime declare @startDate datetime set @e

原创 sqlserver創建序列

CREATE SEQUENCE [dbo].[WF_SEQ]  AS [bigint]  START WITH 10000  INCREMENT BY 1  MINVALUE -9223372036854775808  MAXVALUE

原创 springboot連接Oracle數據庫配置

.properties文件中指定Oracle數據源 spring.datasource.oracle.jdbc-url=jdbc:oracle:thin:@IP:1521/數據庫 spring.datasource.oracle.us

原创 eclipse報錯:類型XX的方法XX必須覆蓋超類的方法

解決方法如下圖中所示 將編譯器一致性級別改爲1.5以上

原创 java——多線程回調函數

原文:https://blog.csdn.net/qq_34996727/article/details/80416277 修改了原文中: Thread 的方法 stop(),改爲用標誌位來終止線程 package thread_rab

原创 sqlserver分頁查詢

select * from ACT_RU_TASK order by CREATE_TIME_ desc select top 5 * from ACT_RU_TASK where ID_ not in(select top 10 ID_

原创 sqlserver日期格式轉換

1、yyyy-mm-dd hh:mm:ss轉爲yyyy-mm-dd    Select convert(char(10),getdate(),126)    ;   2019-03-12 00:00:00.000   轉爲 2019-03