-
Java How to send Email
To send email in Java, we need JavaMail
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Spring Boot How to send email via SMTP
In this tutorial, we will show you how to send email via SMTP in Spring Boot.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Spring Read file from resources folder
In Spring, we can use ClassPathResource or ResourceLoader to get files from classpath easily.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Could not find or load main class
A popular error message for new Java users.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
javac is not recognized as an internal or external command, operable program or batch file
A popular common error for new Java users.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Is Java pass-by-value or pass-by-reference?
In Java, for primitive types, parameters are pass-by-value; For object types, object reference is pass-by-value, however, Java is allowed to modify object’s fields via object reference.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java List java.lang.UnsupportedOperationException
A simple List.add() and hits the following java.lang.UnsupportedOperationException
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java two-dimensional array example
A Java 2d array example.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
How to get user input in Java
In Java, we can use java.util.Scanner to get user input from console.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
java.lang.UnsupportedClassVersionError
Start a Java class and hits this java.lang.UnsupportedClassVersionError, what is class file version 52 56?
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
How to check which JDK version compiled the class?
In Java, we can use javap -verbose className to print out the class information.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Convert ArrayList<String> to String[]
In the old days, we can use list.toArray(new String[0]) to convert a ArrayList<String> into a String[]
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Gson How to parse JSON
Gson provide simple toJson() and fromJson() methods to convert Java objects to / from JSON.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Jackson Convert JSON array string to List
Few Jackson examples to convert a JSON array string to a List
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Jackson How to ignore null fields
In Jackson, we can use @JsonInclude(JsonInclude.Include.NON_NULL) to ignore the null fields.
轻舞肥羊2019-08-11【[Java]】
阅读更多