-
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: 1743
-
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: 2866
-
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: 2101
-
Spring MVC Beans loaded twice
A Spring MVC web application, noticed all the Spring’s beans are loaded twice!?
Date: 2019-08-17 View: 2404
-
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: 3366
-
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: 2278
-
Gradle Create Java project structure automatically
To quick start a new Gradle Java project, type gradle init --type java-library
Date: 2019-08-17 View: 2763
-
Java Math.pow example
A simple Math.pow example, display 2 to the power of 8.
Date: 2019-08-17 View: 2087
-
Java Display double in 2 decimal places
In Java, there are few ways to display double in 2 decimal places.
Date: 2019-08-17 View: 1794
-
NameCheap domain name and Amazon EC2
In this tutorial, we will show you how to associate a NameCheap domain name to an Amazon EC2 instance.
Date: 2019-08-17 View: 2257
-
Maven Display project dependency
In Maven, you can use mvn dependency:tree to display the project dependencies in tree format.
Date: 2019-08-17 View: 1796
-
Java Convert String to int
In Java, you can use Integer.parseInt() to convert a String to int.
Date: 2019-08-17 View: 1703
-
Python 3 : Convert string to bytes
Code snippets to show you how to convert string to bytes and vice versa.
Date: 2019-08-17 View: 2188
-
Spring 3 MVC hello world example Annotation
In this tutorial, we will take the previous Maven + Spring MVC XML example, rewrite it to support @JavaConfig configuration, no more XML files, and deploy it into a Servlet 3.0+ container, like Tomcat 7 or Jetty 9.
Date: 2019-08-17 View: 1912
-
Gradle – Spring 4 MVC Hello World Example Annotation
In this tutorial, we will take the previous Gradle + Spring MVC XML example, rewrite it to support @JavaConfig annotation configuration, no more XML files.
Date: 2019-08-17 View: 2942


