-
How to get HTTP Response Header in Java
This example shows you how to get the Http response header values in Java.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
How to Set $JAVA_HOME environment variable on Mac OS X
In this tutorial, we show you how to set $JAVA_HOME environment variable on latest or older Mac OSX.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
Due to limitations of the BasicDBObject, you cant add a second $and
Using Spring data and Mongodb, below is a function to find data within a date range.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
Maven, JAVA_HOME is not defined correctly on Mac OSX
Apple recommends to set JAVA_HOME to “/usr/libexec/java_home“, for example :
阅读更多轻舞肥羊2019-08-18【[Java]】
-
How to set environment variables on Mac OS X
In Mac OS X, you can set the environment variables in one of the following files :
阅读更多轻舞肥羊2019-08-18【[Java]】
-
How to install MongoDB on Mac OS X
A guide to show you how to install MongoDB on Mac OS X.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
MongoDB : couldnt open /data/db/yourdb.ns errno:13 Permission denied
Starting MongoDB server, it shows error “Permission denied” on one of the database and shutdown the server automatically.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
MongoDB Authentication example
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.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
Download JDK Source code for Mac OS X
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.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
Java HttpURLConnection follow redirect example
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.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
Spring Data MongoDB : Save binary file, GridFS example
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.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
MongoDB import and export example
In this tutorial, we show you how to backup and restore MongoDB with the commands : mongoexport and mongoimport.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
Display a list of countries in Java
In this article, we show you how to use the Locale class to play around the list of countries.
阅读更多轻舞肥羊2019-08-18【[Java]】
-
How to read and parse CSV file in Java
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 “,”).
阅读更多轻舞肥羊2019-08-18【[Java]】
-
Spring asm dependency issue in Spring Data
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 :
阅读更多轻舞肥羊2019-08-18【[Java]】