This example shows you how to get the Http response header values in Java.
In this tutorial, we show you how to set $JAVA_HOME environment variable on latest or older Mac OSX.
Using Spring data and Mongodb, below is a function to find data within a date range.
Apple recommends to set JAVA_HOME to “/usr/libexec/java_home“, for example :
In Mac OS X, you can set the environment variables in one of the following files :
A guide to show you how to install MongoDB on Mac OS X.
Starting MongoDB server, it shows error “Permission denied” on one of the database and shutdown the server automatically.
This guide shows you how to enable authentication in MongoDB. The authentication is disabled by default. To configure it, you must first add a user to the “admin” database.
The JDK source code is packaged in a src.jar, and should be in the JDK/Home folder. However, some JDK versions in Mac OSX didn’t include the source code or Javadoc.
The HttpURLConnection‘s follow redirect is just an indicator, in fact it won’t help you to do the “real” http redirection, you still need to handle it manually.
In MongoDB, you can use GridFS to store binary files. In this tutorial, we show you how to use Spring Data’s GridFsTemplate to store / read image in / from MongoDB.
In this tutorial, we show you how to backup and restore MongoDB with the commands : mongoexport and mongoimport.
In this article, we show you how to use the Locale class to play around the list of countries.
A Comma-Separated Values (CSV) file is just a normal plain-text file, store data in column by column, and split it by a separator (e.g normally it is a comma “,”).
Using Spring Data MongoDB 1.2.1.RELEASE and Spring core 3.2.2.RELEASE, while system is starting, it hits some weird spring-asm IncompatibleClassChangeError errors :