-
Spring MVC Abstract Controller example
For self-reference, this article shows you how to create a Abstract class for Spring Controller, or a template method design pattern.
Date: 2019-08-17 View: 1516
-
How to change Eclipse theme
In this tutorial, we will show you how to change the Eclipse Theme.
Date: 2019-08-17 View: 1861
-
Java Get number of available processors
A code snippet to show you how to get the number of available processors / cores / CPUs in your environment.
Date: 2019-08-17 View: 1257
-
Spring ${} is not working in @Value
A simple Spring @PropertySource example to read a properties file.
Date: 2019-08-17 View: 1412
-
Logback different log file for each thread
In this tutorial, we will show you how to use Logback Mapped Diagnostic Context (MDC) and SiftingAppender to create a separate log file for each thread.
Date: 2019-08-17 View: 1410
-
MongoDB Allow remote access
In this tutorial, we will show you how to enable remote access to a MongoDB server. Here is the tested environment :
Date: 2019-08-17 View: 1389
-
Multiple SSH private keys Examples
To allow multiple private keys connect to different servers, edit ~/.ssh/config :
Date: 2019-08-17 View: 1246
-
Spring @Value default value
In this tutorial, we will show you how to set a default value for @Value
Date: 2019-08-17 View: 1440
-
Spring @Value Import a list from properties file
In this tutorial, we will show you how to import a “List” from a properties file, via Spring EL @Value
Date: 2019-08-17 View: 1339
-
How to pass System Properties in web.xml
In Java standalone application, you can use -D option to pass in the system properties :
Date: 2019-08-17 View: 1264
-
Gradle War Plugin Change output WAR filename
In Gradle, the WAR plugin will generate the final WAR file with the following pattern:
Date: 2019-08-17 View: 2195
-
Spring Data MongoDB Select fields to return
In MongoDB console, you can use field:1 to select the fields to return from a query :
Date: 2019-08-17 View: 1529
-
Spring MVC Beans loaded twice
A Spring MVC web application, noticed all the Spring’s beans are loaded twice!?
Date: 2019-08-17 View: 1838
-
Gradle Application Plugin APP_HOME in applicationDefaultJvmArgs
In Gardle, the application plugin, you can pass the system properties via applicationDefaultJvmArgs :
Date: 2019-08-17 View: 2664
-
Spring Data MongoDB Aggregation Grouping Example
In this tutorial, we will show you how to do the data grouping with Spring Data + MongoDB aggregation framework.
Date: 2019-08-17 View: 1578