Author SHA1 Message Date
YuCheng Hu 27db0d5540 J2EE,Java EE,Jakarta EE 命名之间的恩恩怨怨 https://www.ossez.com/t/j2ee-java-ee-jakarta-ee/14382 2023-04-20 16:40:09 -04:00
YuCheng Hu edcd08e1b2 Merge remote-tracking branch 'origin/main' into persistence-modules
# Conflicts:
#	persistence-modules/spring-data-redis/README.md
2023-01-19 13:18:38 -05:00
YuCheng Hu 038ce5b547 介绍 Spring Data Redis https://www.ossez.com/t/spring-data-redis/14299 2023-01-19 13:17:11 -05:00
YuCheng Hu b9d1b0257c redis 测试类进行测试 2023-01-17 14:20:17 -05:00
YuCheng Hu ddbb638242 添加文章:- [解决在 Spring Boot 中运行 JUnit 测试遇到的 NoSuchMethodError 错误](https://www.ossez.com/t/spring-boot-junit-nosuchmethoderror/14066) 2023-01-17 14:20:17 -05:00
YuCheng Hu bf2335eda1 更新 Java 核心的内容 2023-01-17 14:20:17 -05:00
YuCheng Hu 1b3b30cae3 redis 测试类进行测试 2023-01-17 14:18:04 -05:00
YuCheng Hu 4711c3a393 添加文章:- [解决在 Spring Boot 中运行 JUnit 测试遇到的 NoSuchMethodError 错误](https://www.ossez.com/t/spring-boot-junit-nosuchmethoderror/14066) 2022-08-24 15:29:59 -04:00
YuCheng Hu 05d80c840d Merge remote-tracking branch 'origin/main' into persistence-modules 2022-08-24 14:24:01 -04:00
YuCheng Hu 77c51720e9 add test for Spring Boot 2022-08-24 14:08:53 -04:00
YuCheng Hu dc99d9404d 更新 Java 核心的内容 2022-08-22 21:17:14 -04:00
YuCheng Hu 2b1d680b2c 更新 README 文件 2022-08-12 13:30:20 -04:00
honeymoose 3b344e5c9f Merge pull request 'Java 多行字符串' (#45) from persistence-modules into main
Reviewed-on: https://src.ossez.com/cwiki-us-docs/java-tutorials/pulls/45
2022-08-08 09:42:32 -04:00
YuCheng Hu f2c3c2bf0f Java 多行字符串 2022-08-08 09:36:36 -04:00
YuCheng Hu b90cdd3306 讨论字符串的的文章 2022-08-08 09:34:55 -04:00
YuCheng Hu c816787e06 添加核心 Java 的模块,在这里我们主要针对一些环境和 IDE 以及非常基本的问题进行讨论 2022-08-08 09:34:25 -04:00
YuCheng Hu e8f74069ff Java “constant string too long” 编译错误 2022-08-06 10:16:50 -04:00
YuCheng Hu ae29615530 更新 Guava 项目的依赖和 Spring JPA 2022-07-15 14:31:15 -04:00
honeymoose cd46aea7ac Merge pull request 'core-java-strings 字符串压缩 Compact' (#43) from core-java-strings into main
Reviewed-on: https://src.ossez.com/cwiki-us-docs/java-tutorials/pulls/43
2022-07-05 10:21:14 -04:00
YuCheng Hu c6df8af1e0 测试 JDK 9 的字符串压缩 2022-07-05 10:15:52 -04:00
YuCheng Hu b9bf30f350 - [Java 9 中的字符串(String)压缩](https://www.ossez.com/t/java-9-string/14024) 2022-07-05 10:14:24 -04:00
YuCheng Hu 08abc1855a - [Java 9 中的字符串(String)压缩](https://www.ossez.com/t/java-9-string/14024) 2022-07-02 09:27:40 -04:00
YuCheng Hu 25cff75966 更新有关 Java 注解的文章 2022-07-01 17:48:25 -04:00
YuCheng Hu c56e58379a https://www.ossez.com/t/topic/14022 编程常用的几种字符编码 2022-07-01 16:59:57 -04:00
YuCheng Hu 0803488d88 更新 Java String 有关的文章链接 2022-06-29 19:56:57 -04:00
YuCheng Hu b7d0d45f28 添加 Java 中的 String Pool 简介 内容 2022-06-20 17:26:15 -04:00
YuCheng Hu de42646567 格式化输入和输出 2022-06-20 10:46:59 -04:00
YuCheng Hu 61bb6834e6 更新文章 Java 使用 char[] Array 还是 String 存储字符串 的链接 https://www.ossez.com/t/java-char-array-string/14015 2022-06-20 01:09:08 -04:00
YuCheng Hu ed00ae8a6b 添加理解 Java 中的 NumberFormatException 异常 的链接 2022-06-20 01:07:33 -04:00
YuCheng Hu ad2ca48135 更新测试文件注释和文章的内容链接 2022-06-20 01:07:12 -04:00
YuCheng Hu ed4af4389d 添加理解 Java 中的 NumberFormatException 异常 的链接 2022-06-20 01:05:35 -04:00
YuCheng Hu 85b63c6f8d 修改数字格式化异常的内容 2022-06-20 01:03:51 -04:00
YuCheng Hu f08da063e7 尝试触发下 CI 的编译 2022-06-19 09:33:57 -04:00
honeymoose 5b3ef027b1 Merge pull request 'ci' (#39) from ci into main
Reviewed-on: https://src.ossez.com/cwiki-us-docs/java-tutorials/pulls/39
2022-06-18 07:41:52 -04:00
YuCheng Hu 6926189ba0 修改项目的编译错误 2022-06-17 14:32:41 -04:00
YuCheng Hu abf6ebb6e5 <commons-exec.version>1.3</commons-exec.version> 2022-06-17 14:29:02 -04:00
YuCheng Hu f50cfa7686 尝试推送后触发 CI 构建 2022-06-17 14:23:45 -04:00
YuCheng Hu 5523c5fe67 修改构建错误 2022-06-17 14:16:51 -04:00
YuCheng Hu c63d207c77 修改 install 为 package 进行编译 2022-06-17 13:38:17 -04:00
YuCheng Hu 173bb5ef7d 更新 POM.xml 文件能够让构建顺利进行 2022-06-17 13:06:51 -04:00
YuCheng Hu f2200288e7 maven 3.8.4 2022-06-17 12:53:19 -04:00
YuCheng Hu f731671503 WorkflowScript: 5: Tool type "maven" does not have an install of "Maven 3.8.6" configured - did you mean "maven 3.8.4"? @ line 5, column 15.
maven 'Maven 3.8.6'
                 ^

WorkflowScript: 6: Tool type "jdk" does not have an install of "jdk11" configured - did you mean "OpenJDK-11"? @ line 6, column 13.
           jdk 'jdk11'
               ^
2022-06-17 12:52:08 -04:00
YuCheng Hu be05ebb0d3 add tools for Jenkinsfile 2022-06-17 12:51:11 -04:00
YuCheng Hu f0cf866d20 Add steps for mvn build 2022-06-17 12:44:29 -04:00
YuCheng Hu 3c9061cc47 Merge remote-tracking branch 'origin/main' into ci 2022-06-17 12:36:12 -04:00
YuCheng Hu a709139646 添加 Jenkins 的构建文件 2022-06-17 10:47:43 -04:00
YuCheng Hu d66dad8fae 更新错误的 README.md 文件排版格式 2022-06-14 18:14:27 -04:00
168 changed files with 4491 additions and 192 deletions
+46
View File
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="codebank" />
<module name="core-java-collections-list" />
<module name="spring-data-jpa-repo-2" />
<module name="core-java-streams" />
<module name="assertion-libraries" />
<module name="core-java-io" />
<module name="core-java-annotations" />
<module name="core-java-8-2" />
<module name="core-java-numbers" />
<module name="discourse" />
<module name="spring-data-redis" />
<module name="core-java-strings" />
<module name="core-java" />
<module name="core-java-11" />
<module name="core-java-collections-list-2" />
<module name="core-java-collections" />
<module name="core-java-datetime-conversion" />
<module name="core-java-collections-list-3" />
<module name="core-java-8" />
<module name="junit-5-basics" />
<module name="core-java-collections-3" />
<module name="core-java-collections-2" />
<module name="activejdbc" />
</profile>
</annotationProcessing>
<bytecodeTargetLevel>
<module name="core-java-11-2" target="11" />
<module name="hibernate-annotations" target="1.5" />
<module name="hibernate5" target="11" />
</bytecodeTargetLevel>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="core-java-streams" options="-parameters" />
</option>
</component>
</project>
+64
View File
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11-2/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11-2/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-11/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-8-2/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-8-2/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-8/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-8/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-annotations/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-annotations/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-2/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-2/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-3/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-3/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-list-2/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-list-2/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-list-3/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-list-3/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-list/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections-list/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-collections/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-datetime-conversion/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-datetime-conversion/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-io/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-io/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-numbers/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-numbers/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-streams/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-streams/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-strings/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java-strings/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/core-java/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/core-java-modules/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/activejdbc/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/activejdbc/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/hibernate5/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/hibernate5/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/spring-data-jpa-repo-2/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/spring-data-jpa-repo-2/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/spring-data-redis/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/spring-data-redis/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/persistence-modules/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/testing-modules/assertion-libraries/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/testing-modules/assertion-libraries/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/testing-modules/junit-5-basics/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/testing-modules/junit-5-basics/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/testing-modules/junit-5-basics/src/test/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/testing-modules/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/testing-modules/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/toolkits/codebank/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/toolkits/codebank/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/toolkits/discourse/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/toolkits/discourse/src/main/resources" charset="UTF-8" />
</component>
</project>
+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="ossez-repo-snapshots" />
<option name="name" value="OSSEZ Private Snapshots" />
<option name="url" value="https://repo.ossez.com/repository/maven-snapshots/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="geodb-repo" />
<option name="name" value="GeoDB repository" />
<option name="url" value="http://repo.boundlessgeo.com/main/" />
</remote-repository>
<remote-repository>
<option name="id" value="ossez-repo-releases" />
<option name="name" value="OSSEZ Private Releases" />
<option name="url" value="https://repo.ossez.com/repository/maven-releases/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.ossez.com/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JpaBuddyIdeaProjectConfig">
<option name="defaultUnitInitialized" value="true" />
<option name="renamerInitialized" value="true" />
</component>
</project>
Generated
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ThriftCompiler">
<compilers />
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
Vendored
+27
View File
@@ -0,0 +1,27 @@
pipeline {
agent any
tools {
maven 'maven 3.8.4'
jdk 'OpenJDK-11'
}
stages {
stage('Build') {
steps {
echo 'Building..'
sh 'mvn clean package'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}
+7 -4
View File
@@ -5,7 +5,7 @@
<br>提供 CWIKI.US 项目中使用的代码 <br>提供 CWIKI.US 项目中使用的代码
</p> </p>
所有的 Java 代码使用的是 JDK 11。 Java 代码使用的是 JDK 11。
你可以通过单击下面连接后访问我们网站,并且访问我们提供的最新有关 Java 的开发资料。 你可以通过单击下面连接后访问我们网站,并且访问我们提供的最新有关 Java 的开发资料。
@@ -25,7 +25,9 @@
# 公众平台 # 公众平台
我们建议您通过社区论坛来和我们进行沟通,请关注我们公众平台上的账号 我们建议您通过社区论坛来和我们进行沟通,请关注我们公众平台上的账号。
扫描 QR 关注我们的微信公众号和头条号。
## 微信公众号 ## 微信公众号
@@ -33,10 +35,11 @@
## 头条号 ## 头条号
我们也在头条号上创建了我们的公众号,请扫描下面的 QR 关注我们的头条号。
![](https://cdn.ossez.com/img/cwikius/cwikus-qr-toutiao.png) ![](https://cdn.ossez.com/img/cwikius/cwikus-qr-toutiao.png)
## 知乎
请关注我们的知乎:https://www.zhihu.com/people/huyuchengus
## 快速导航 ## 快速导航
在下面的表格中,我们列出了一些比较有用的 CWIKIUS 相关软件开发使用教程的导航,欢迎访问下面的链接获得更多的内容和参与讨论 在下面的表格中,我们列出了一些比较有用的 CWIKIUS 相关软件开发使用教程的导航,欢迎访问下面的链接获得更多的内容和参与讨论
+4 -3
View File
@@ -1,9 +1,10 @@
## Core Java Modules ## Java 核心模块(Core Java)
This module contains modules about core Java 本模块中包含有关 Java 核心(Core Java)有关的内容。
## Relevant articles: ## 相关文章
- [J2EE,Java EE,Jakarta EE 命名之间的恩恩怨怨](https://www.ossez.com/t/j2ee-java-ee-jakarta-ee/14382)
- [Understanding the NumberFormatException in Java](https://www.baeldung.com/java-number-format-exception) - [Understanding the NumberFormatException in Java](https://www.baeldung.com/java-number-format-exception)
@@ -3,7 +3,6 @@
本模块中包含有关 Java 11 核心新增功能的的一些文章 本模块中包含有关 Java 11 核心新增功能的的一些文章
### 相关文章 ### 相关文章
- [Java 8 开始新增的 Optional 类](https://www.ossez.com/t/java-8-optional/13964)
- [Guide to Java Reflection](http://www.baeldung.com/java-reflection) - [Guide to Java Reflection](http://www.baeldung.com/java-reflection)
- [Guide to Java 8’s Collectors](https://www.baeldung.com/java-8-collectors) - [Guide to Java 8’s Collectors](https://www.baeldung.com/java-8-collectors)
- [New Features in Java 11](https://www.baeldung.com/java-11-new-features) - [New Features in Java 11](https://www.baeldung.com/java-11-new-features)
+1 -1
View File
@@ -18,7 +18,7 @@
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>${guava.version}</version> <version>${version.guava}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mock-server</groupId> <groupId>org.mock-server</groupId>
+1
View File
@@ -14,3 +14,4 @@ This module contains articles about Java 11 core features
- [Negate a Predicate Method Reference with Java 11](https://www.baeldung.com/java-negate-predicate-method-reference) - [Negate a Predicate Method Reference with Java 11](https://www.baeldung.com/java-negate-predicate-method-reference)
- [Benchmark JDK Collections vs Eclipse Collections](https://www.baeldung.com/jdk-collections-vs-eclipse-collections) - [Benchmark JDK Collections vs Eclipse Collections](https://www.baeldung.com/jdk-collections-vs-eclipse-collections)
- [Pre-compile Regex Patterns Into Pattern Objects](https://www.baeldung.com/java-regex-pre-compile) - [Pre-compile Regex Patterns Into Pattern Objects](https://www.baeldung.com/java-regex-pre-compile)
+1 -1
View File
@@ -20,7 +20,7 @@
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>${guava.version}</version> <version>${version.guava}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.openjdk.jmh</groupId> <groupId>org.openjdk.jmh</groupId>
+2 -2
View File
@@ -2,12 +2,12 @@
本模块中包含有关 Java 8 核心新增功能特性的一些文章。 本模块中包含有关 Java 8 核心新增功能特性的一些文章。
### 相关文章 ### 相关文章
- [Run a Java Application from the Command Line](https://www.baeldung.com/java-run-jar-with-arguments) - [Run a Java Application from the Command Line](https://www.baeldung.com/java-run-jar-with-arguments)
- [Java 8 Stream skip() vs limit()](https://www.baeldung.com/java-stream-skip-vs-limit) - [Java 8 Stream skip() vs limit()](https://www.baeldung.com/java-stream-skip-vs-limit)
- [Guide to Java BiFunction Interface](https://www.baeldung.com/java-bifunction-interface) - [Guide to Java BiFunction Interface](https://www.baeldung.com/java-bifunction-interface)
- [Interface With Default Methods vs Abstract Class](https://www.baeldung.com/java-interface-default-method-vs-abstract-class) - [Interface With Default Methods vs Abstract Class](https://www.baeldung.com/java-interface-default-method-vs-abstract-class)
- [Convert Between Byte Array and UUID in Java](https://www.baeldung.com/java-byte-array-to-uuid) - [Convert Between Byte Array and UUID in Java](https://www.baeldung.com/java-byte-array-to-uuid)
- [Create a Simple “Rock-Paper-Scissors” Game in Java](https://www.baeldung.com/java-rock-paper-scissors) - [Create a Simple “Rock-Paper-Scissors” Game in Java](https://www.baeldung.com/java-rock-paper-scissors)
- [Java 8 开始新增的 Optional 类](https://www.ossez.com/t/java-8-optional/13964)
- [[<-- Java 8 核心(第 1 部分)]](/core-java-modules/core-java-8) - [[<-- Java 8 核心(第 1 部分)]](/core-java-modules/core-java-8)
@@ -1,6 +1,7 @@
========= ## Annotation(注解)
Java 注解(Annotation)又称 Java 标注,是 JDK5.0 引入的一种注释机制。
## Core Java Cookbooks and Examples Java 语言中的类、方法、变量、参数和包等都可以被标注。和 Javadoc 不同,Java 标注可以通过反射获取标注内容。在编译器生成类文件时,标注可以被嵌入到字节码中。Java 虚拟机可以保留标注内容,在运行时可以获取到标注内容 。 当然它也支持自定义 Java 标注。
### 相关的文章: ### 相关的文章:
- [Java @Override Annotation](https://www.baeldung.com/java-override) - [Java @Override Annotation](https://www.baeldung.com/java-override)
@@ -11,7 +11,6 @@
<groupId>com.ossez.core-java-modules</groupId> <groupId>com.ossez.core-java-modules</groupId>
<artifactId>core-java-modules</artifactId> <artifactId>core-java-modules</artifactId>
<version>0.0.2-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent> </parent>
<dependencies> <dependencies>
@@ -34,6 +33,7 @@
<properties> <properties>
<jol-core.version>0.10</jol-core.version> <jol-core.version>0.10</jol-core.version>
<commons-exec.version>1.3</commons-exec.version>
</properties> </properties>
</project> </project>
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.arraylistvsvector; package com.ossez.collections.arraylistvsvector;
import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.Runner;
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.arraylistvsvector; package com.ossez.collections.arraylistvsvector;
public class Employee { public class Employee {
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.arraylistvsvector; package com.ossez.collections.arraylistvsvector;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Iterator; import java.util.Iterator;
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.containsperformance; package com.ossez.collections.containsperformance;
import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.Runner;
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.containsperformance; package com.ossez.collections.containsperformance;
public class Employee { public class Employee {
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.iterators; package com.ossez.collections.iterators;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.removeallperformance; package com.ossez.collections.removeallperformance;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashSet; import java.util.HashSet;
@@ -6,7 +6,7 @@ import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import com.ossez.collections.collections.containsperformance.Employee; import com.ossez.collections.containsperformance.Employee;
import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.RandomStringUtils;
import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.BenchmarkMode;
@@ -1,4 +1,4 @@
package com.ossez.collections.collections.sortingcomparison; package com.ossez.collections.sortingcomparison;
import java.util.Arrays; import java.util.Arrays;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@@ -1,8 +1,8 @@
package com.ossez.collections.iterators; package com.ossez.collections.iterators;
import static com.ossez.collections.collections.iterators.Iterators.failFast1; import static com.ossez.collections.iterators.Iterators.failFast1;
import static com.ossez.collections.collections.iterators.Iterators.failFast2; import static com.ossez.collections.iterators.Iterators.failFast2;
import static com.ossez.collections.collections.iterators.Iterators.failSafe1; import static com.ossez.collections.iterators.Iterators.failSafe1;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -29,7 +29,7 @@
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
<version>${log4j.version}</version> <version>${version.log4j}</version>
</dependency> </dependency>
<!-- test scoped --> <!-- test scoped -->
<dependency> <dependency>
+2 -2
View File
@@ -71,12 +71,12 @@
<dependency> <dependency>
<groupId>log4j</groupId> <groupId>log4j</groupId>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
<version>${log4j.version}</version> <version>${version.log4j}</version>
</dependency> </dependency>
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly --> <dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId> <artifactId>log4j-over-slf4j</artifactId>
<version>${slf4j.version}</version> <version>${version.slf4j}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
@@ -1,6 +1,6 @@
## Java 数字(Number) ## Java 数字(Number)
这个模块中包含有关 Java 数字(Number)有关的文章。 本模块中包含有关 Java 数字(Number)有关的文章。
### 相关文章 ### 相关文章
- [理解 Java 中的 NumberFormatException 异常](https://www.ossez.com/t/java-numberformatexception/13986) - [理解 Java 中的 NumberFormatException 异常](https://www.ossez.com/t/java-numberformatexception/13986)
+3 -4
View File
@@ -8,10 +8,9 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<parent> <parent>
<groupId>com.ossez</groupId> <groupId>com.ossez.core-java-modules</groupId>
<artifactId>parent-modules</artifactId> <artifactId>core-java-modules</artifactId>
<version>0.0.2-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent> </parent>
<dependencies> <dependencies>
@@ -49,7 +48,7 @@
<properties> <properties>
<icu4j.version>61.1</icu4j.version> <icu4j.version>61.1</icu4j.version>
<maven.compiler.release>15</maven.compiler.release> <maven.compiler.release>11</maven.compiler.release>
</properties> </properties>
</project> </project>

Some files were not shown because too many files have changed in this diff Show More