標籤(空格分隔): 技術棧java
[toc]git
加解密功能封裝 例:github
<dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.12</version> </dependency>
/* * MD5加密 */ DigestUtils.md5Hex("123456")
工具類封裝 例:spring
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.9</version> </dependency>
public static void main(String[] args) { System.out.println(StringUtils.isEmpty(null)); System.out.println(StringUtils.isEmpty("")); System.out.println(ObjectUtils.anyNotNull(null, null)); System.out.println(ObjectUtils.anyNotNull(11, null)); System.out.println(RandomUtils.nextBoolean()); System.out.println(RandomUtils.nextBoolean()); System.out.println(SystemUtils.JAVA_HOME); }
IO工具封裝(FileUtils、IOUtils等) 例:apache
<dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.6</version> </dependency>
集合功能封裝 例:dom
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <version>4.0</version> </dependency>
<dependency> <groupId>commons-pool</groupId> <artifactId>commons-pool</artifactId> <version>1.6</version> </dependency>
Apache開源組織提供的用於操做JAVA BEAN的工具包ide
<dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.9.3</version> </dependency>
MyBatis 分頁插件spring-boot
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.1.6</version> </dependency>
<dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.8.1</version> </dependency>
<dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.10</version> </dependency>
<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>4.6.1</version> </dependency>
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>6.0.17.Final</version> </dependency>
<dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactId> <version>${metrics.version}</version> </dependency>
Lombok能以簡單的註解形式來簡化java代碼,提升開發人員的開發效率工具
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.20</version> <scope>provided</scope> </dependency>
註解:加密
@Data
減小編寫日誌的組件
<dependency> <groupId>wiki.xsx</groupId> <artifactId>spring-boot-starter-slf4j</artifactId> <version>RELEASE</version> </dependency>