-
Java Thread Mutex and Semaphore example
Java multi threads example to show you how to use Semaphore and Mutex to limit the number of threads to access resources.
Date: 2019-08-11 View: 1511
-
Spring Boot How to change Tomcat port
In Spring Boot, to change the embedded Tomcat initialized port (8080), update server.port properties.
Date: 2019-08-11 View: 1322
-
Spring Boot Jetty as embedded server
By default, Spring Boot use Tomcat as the default embedded server, to change it to Jetty, just exclude Tomcat and include Jetty like this :
Date: 2019-08-11 View: 1282
-
JExcel API Reading and Writing Excel file in Java
In this article, we will discuss about how to read and write an excel file using JExcel API, a simple library and widely used for simple operations which do not involve a high level of formatting and complex formulas based operations.
Date: 2019-08-11 View: 1342
-
Spring Boot Which main class to start
If Spring Boot project contains multiple main classes, Spring Boot will fail to start or packag for deployment.
Date: 2019-08-11 View: 1381
-
Intellij IDEA – Spring boot reload static file is not working
In Eclipse, just include the Spring Boot Dev Tools dependency, then the hot swapping and static file reload will be enabled magically. For Intellij IDE, we need extra steps to enable it.
Date: 2019-08-11 View: 2036
-
iText Read and Write PDF in Java
This article talks about reading and writing PDF using iText PDF library.
Date: 2019-08-11 View: 1541
-
Apache POI – Reading and Writing Excel file in Java
In this article, we will discuss about how to read and write an excel file using Apache POI
Date: 2019-08-11 View: 1748
-
wget on Mac OS X
By default, there is no wget on Mac OS X.
Date: 2019-08-11 View: 1423
-
Spring Boot SLF4j Logback example
In this tutorial, we will show you how to use Logback in Spring Boot framework.
Date: 2019-08-11 View: 1765
-
Spring Boot @ConfigurationProperties example
Spring Boot @ConfigurationProperties is letting developer maps the entire .properties and yml file into an object easily.
Date: 2019-08-11 View: 1482
-
Java 8 Math Exact examples
Java 8 introduced new methods in the Math class that will throw an ArithmeticException to handle overflows. These methods consist of addExact, substractExact, multiplyExact, incrementExact, decrementExact and negateExact with int and long arguments. In addition, there’s a static toIntExact method to convert a long value to an int that also throws ArithmeticException.
Date: 2019-08-11 View: 1455
-
Java Swing JOptionPane showOptionDialog example
The showOptionDialog method of JOptionPane is the Grand Unification of showConfirmDialog, showInputDialog and showMessageDialog.
Date: 2019-08-11 View: 2332
-
How to copy an Array in Java
The methods described below are only applicable to one dimensional arrays. Before we talk about the different ways to copy an array in Java we will show you how NOT to copy an Array.
Date: 2019-08-11 View: 1427
-
Java Digital Signatures example
In Asymmetric Cryptography example we discussed the use of Public Key Pair in Cryptography. Another important use of the Public Key Infrastructure is in Digital Signatures. Digital Signatures are the digital equivalent of handwritten signatures with one important difference; they are not unique but come as a product of the message.
Date: 2019-08-11 View: 1284