-
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: 1171
-
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: 1215
-
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: 1534
-
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: 1337
-
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: 1295
-
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: 1357
-
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: 1407
-
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: 2069
-
iText Read and Write PDF in Java
This article talks about reading and writing PDF using iText PDF library.
Date: 2019-08-11 View: 1565
-
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: 1776
-
wget on Mac OS X
By default, there is no wget on Mac OS X.
Date: 2019-08-11 View: 1439
-
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: 1792
-
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: 1504
-
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: 1483
-
Java Swing JOptionPane showOptionDialog example
The showOptionDialog method of JOptionPane is the Grand Unification of showConfirmDialog, showInputDialog and showMessageDialog.
Date: 2019-08-11 View: 2354