-
Spring Boot How to change Context Path
In Spring Boot, to change the context path, update server.contextPath properties. The following examples update the context path from / to /mkyong or http://localhost:8080/mkyong
Date: 2019-08-16 View: 1195
-
Spring Boot How to change Context Path
In Spring Boot, to change the context path, update server.contextPath properties. The following examples update the context path from / to /mkyong or http://localhost:8080/mkyong
Date: 2019-08-11 View: 1231
-
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: 1555
-
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: 1364
-
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: 1314
-
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: 1377
-
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: 1442
-
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: 2106
-
iText Read and Write PDF in Java
This article talks about reading and writing PDF using iText PDF library.
Date: 2019-08-11 View: 1588
-
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: 1803
-
wget on Mac OS X
By default, there is no wget on Mac OS X.
Date: 2019-08-11 View: 1461
-
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: 1823
-
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: 1527
-
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: 1509
-
Java Swing JOptionPane showOptionDialog example
The showOptionDialog method of JOptionPane is the Grand Unification of showConfirmDialog, showInputDialog and showMessageDialog.
Date: 2019-08-11 View: 2378