AdSense

2020/6/5

Java java.sql.Timestamp簡介

Java java.sql.Timestamp簡介。

Use milliseconds to record date time

In my current working project, our team uses milliseconds to record the moment of DML. The problem is using milliseconds is not intuitive for developers to read. They cannot tell the time through the long number. I have to copy the long number and use online converter to translate milliseconds to readable date time information when debugging, such a pain.

I asked a member about the reason, he told me maybe they wanted to record time directly by Java System.currentTimeMillis().

I would use TIMESTAMP instead.

2020/6/4

什麼是DER編碼檔案? What is DER encoded file

簡單說DER是ASN.1標準的二進位編碼方式,常用於憑證(certificate)的編碼

JWK (JSON Web Key) 是什麼?

JSON Web Key,簡稱JWK,是以JSON物件表示,用來驗證JWT的signature(簽章)的公開金鑰(cryptographic key)。

2020/6/2

Spring Bean的種類範圍 bean scope

Spring可定義Bean的實例範圍(scope)如下。

2020/6/1

Spring AOP get method advice annotation and parameters

在Spring AOP透過從annotation advice取得方法的annotation。

Spring AOP 使用annotation對方法做log

Spring AOP使用annotation注釋的方式對標記的方法輸出log的方法如下。

AdSense