-
Spring Boot Log4j 2 example
In this tutorial, we will show you how to use Apache Log4j 2 in Spring Boot framework.
Date: 2019-08-11 View: 1315
-
SLF4J Logback Tutorial
A simple SLF4J with Logback example.
Date: 2019-08-11 View: 1466
-
Java How to Iterate a HashMap
In Java, there are 3 ways to loop or iterate a HashMap
Date: 2019-08-11 View: 1235
-
Maven source value 1.5 is obsolete and will be removed in a future release
In IntelliJ IDEA, Maven builds a project, and hits the following warning message?
Date: 2019-08-11 View: 1738
-
Java Files.readAllBytes example
In Java, we can use Files.readAllBytes to read a file.
Date: 2019-08-11 View: 1395
-
Java How to append text to a file
In Java, we can use Files.write and StandardOpenOption.APPEND to append text to a file.
Date: 2019-08-11 View: 1368
-
Java How to create and write to a file
In Java, we can use Files.write (Since JDK 7) to create and write to a file, one line, simple and nice. See the following examples :
Date: 2019-08-11 View: 1284
-
Java How to read a file
In Java, there are few ways to read a file.
Date: 2019-08-11 View: 1228
-
Java How to send Email
To send email in Java, we need JavaMail
Date: 2019-08-11 View: 1322
-
Spring Boot How to send email via SMTP
In this tutorial, we will show you how to send email via SMTP in Spring Boot.
Date: 2019-08-11 View: 1217
-
Spring Read file from resources folder
In Spring, we can use ClassPathResource or ResourceLoader to get files from classpath easily.
Date: 2019-08-11 View: 1303
-
Java Could not find or load main class
A popular error message for new Java users.
Date: 2019-08-11 View: 1361
-
javac is not recognized as an internal or external command, operable program or batch file
A popular common error for new Java users.
Date: 2019-08-11 View: 1409
-
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.
Date: 2019-08-11 View: 1222
-
Java List java.lang.UnsupportedOperationException
A simple List.add() and hits the following java.lang.UnsupportedOperationException
Date: 2019-08-11 View: 1190