Hello Java!
Examples for learning Java.
Modules
- hello-actuator - usage of
spring boot actuator - hello-arrays-aslist - usage of java
Arrays.asList() - hello-assert - usage of java
assert - hello-autoboxing - java autoboxing
- hello-chinese-calendar - conversion between solar calendar and lunar calendar
- hello-command-line-runner - spring
CommandLineRunnerand@Order - hello-commons-cli - usage of apache
commons-cli - hello-configuration - test
@Configurationand@TestConfiguration - hello-constant-interface -
Constant Interface Anti-Patternis evil - hello-cpu-num - how to get cpu number
- hello-deadlock - emulate deadlock
- hello-digest-utils - usage of spring
DigestUtils - hello-docker - how to package docker image
- hello-enum - usage of java
enumtype - hello-exception - how uncaught exception propagates
- hello-executors - usage of java
Executors - hello-float - detail of java float
0.0f,-0.0f,Float.NaN,Float.INFINITY - hello-guava - usage of google
guavalibrary - hello-interface-default-method - default method in interface
- hello-io - some io features
- hello-ip-hostname - get all IPs and hostnames of current machine
- hello-jce-policy - oracle jce policy test
- hello-lombok - usage of
lombok, including@Getter,@Setter, types of@Constructor, etc - hello-math - simple math
- hello-memory-leak - emulate memory leak
- hello-mockito - usage of
mockitoandpowermock - hello-output-capture - use spring
OutputCaptureto teststdoutandstderr - hello-override - detail of java method override
- hello-reference - java
StrongReference,SoftReference,WeakReference,PhantomReference - hello-regex - java regex
Pattern - hello-resource-path - get file path in classpath
- hello-retry - usage of
spring retry - hello-runtime-version - usage of
java.lang.Runtime.Versionin Java 9 - hello-schedule - spring
@EnableSchedulingand@Scheduled - hello-sqlite - usage of
sqlite - hello-sshj - usage of
SSHJ - hello-string - detail of java string and string pool
- hello-thread-stop - comparion of stopping thread
- hello-tomcat-dir - tomcat embedded default work dir
- hello-varargs - varargs
... - hello-xml - usage of
dom4j