-
Spring Boot Run code when the application starts
In Spring Boot, we can create a CommandLineRunner bean to run code when the application is fully started.
Date: 2019-08-11 View: 1110
-
Spring Boot YAML example
In this article, we will show you how to use YAML instead of properties file in Spring Boot.
Date: 2019-08-11 View: 1460
-
Java How to declare and initialize an Array
Few Java examples to declare, initialize and manipulate Array in Java
Date: 2019-08-11 View: 1545
-
Java 8 How to convert IntStream to Integer[]
The key is boxed() the IntStream into a Stream<Integer>, then only convert to an Array.
Date: 2019-08-11 View: 1433
-
HikariPool-1 Connection is not available, request timed out after 30002ms.
After some SQL queries, the system is unable to get any connection from the HikariPool and prompts the following error message
Date: 2019-08-11 View: 7364
-
Java 8 Convert a Stream to Array
In Java 8, we can use .toArray() to convert a Stream into an Array.
Date: 2019-08-11 View: 1337
-
JDBC PreparedStatement SQL IN condition
Java JDBC PreparedStatement example to create a SQL IN condition.
Date: 2019-08-11 View: 1472
-
Spring Boot + Spring data JPA
In this tutorial, we will show you how to use Spring Boot + Spring data JPA to save data into an H2 in-memory database and how to also query the data.
Date: 2019-08-11 View: 1249
-
Spring Boot + Spring data JPA + MySQL
The previous Spring Boot + Spring data JPA will be reused, modify to support MySQL database.
Date: 2019-08-11 View: 1803
-
JavaScript Check if String contains a substring
In JavaScript, we can use the classic indexOf() or the new ES6 includes to check if a String contains a substring.
Date: 2019-08-11 View: 1429
-
Spring Boot MySQL : Table DB_NAME.hibernate_sequence doesnt exist
Spring Boot + Spring Data JPA + MySQL, and hits the following error message when the application starts :
Date: 2019-08-11 View: 1322
-
Spring Boot + Spring data JPA + PostgreSQL
The previous Spring Boot + Spring data JPA will be reused, modify to support PostgreSQL database.
Date: 2019-08-11 View: 1676
-
Apache Log4j 2 Tutorials
A simple log4j 2 hello world example.
Date: 2019-08-11 View: 1221
-
JavaScript How to redirect a page
In JavaScript, we can use either location.replace() or location.href to redirect a page. Normally, we use location.replace() to simulate an HTTP redirect.
Date: 2019-08-11 View: 1358
-
Log4j 2 java.lang.NoClassDefFoundError: com/lmax/disruptor/EventTranslatorVararg
Enable the log4j 2 loggers to asynchronous, but hits the following order :
Date: 2019-08-11 View: 4727