-
Spring Boot How to know which connection pool is used?
In Spring Boot, @Autowired a javax.sql.DataSource, and you will know which database connection pool is using in the current running application.
Date: 2019-08-11 View: 2030
-
Spring Boot JDBC + Oracle database + Commons DBCP2 example
In this article, we will show you how to create a Spring Boot JDBC application + Oracle database + Commons DBCP2 connection pool.
Date: 2019-08-11 View: 3333
-
WordPress Disable comments on attachments
After stopped and cleaned the WordPress pingback and trackback spams, those spammers have changed strategy to start spamming comments and trackbacks on the post attachments.
Date: 2019-08-11 View: 2437
-
Spring Boot + Spring Data JPA + Oracle example
In this article, we will show you how to create a Spring Boot + Spring Data JPA + Oracle + HikariCP connection pool example.
Date: 2019-08-11 View: 4096
-
Java 8 Optional In Depth
Java 8 has introduced a new class Optional in java.util package. It is used to represent a value is present or absent. The main advantage of this new construct is that No more too many null checks and NullPointerException. It avoids any runtime NullPointerExceptions and supports us in developing clean and neat Java APIs or Applications. Like Collections and arrays, it is also a Container to hold at most one value. Let us explore this new construct with some useful examples.
Date: 2019-08-11 View: 1966
-
Spring Boot Show Hibernate SQL query
Add the following lines in application.properties to log the Hibernate SQL query.
Date: 2019-08-11 View: 2218
-
Oracle PL/SQL – Rename Trigger
This article shows you how to use ALTER TRIGGER to rename a trigger.
Date: 2019-08-11 View: 3917
-
JPA Insert + Oracle Sequences example
A quick JPA + Oracle sequences example, for self reference.
Date: 2019-08-11 View: 2970
-
Spring Boot + Spring Data MongoDB example
In this article, we will show you how to create a Spring Boot + Spring Data MongoDB application, using Gradle build tool.
Date: 2019-08-11 View: 2250
-
Spring Data Add custom method to Repository
In this article, we will show you how to add a custom method to Spring Data JPA CrudRepository and MongoDB MongoRepository
Date: 2019-08-11 View: 1970
-
How to display all beans loaded by Spring Boot
In Spring Boot, you can use appContext.getBeanDefinitionNames() to get all the beans loaded by the Spring container.
Date: 2019-08-11 View: 1776
-
Spring Boot + Spring Data JPA + Java 8 date and time (JSR310)
In Spring Boot + Spring Data JPA application, to support the JSR310 java.time.* APIs, we need to register this Jsr310JpaConverters manually.
Date: 2019-08-11 View: 2265
-
Gradle is not sync with IntelliJ IDEA
Make some changes in the build.gradle file, but the changes never apply or sync to the IDEA (Tested with 2016.3)
Date: 2019-08-11 View: 2034
-
Spring Boot Test How to disable DEBUG and INFO logs
Run the Spring Boot integration test or unit test, many annoying DEBUG and INFO logs are displayed in the console.
Date: 2019-08-11 View: 3985
-
Spring Boot Profiles example
In this article, we will show you how to use @Profile in Spring Boot and also how to test it.
Date: 2019-08-11 View: 1855


