-
How To Get HTTP Request Header In Java
This example shows you how to get the HTTP request headers in Java. To get the HTTP request headers, you need this class HttpServletRequest :
Date: 2019-08-17 View: 1698
-
Java Check if web request is from Google crawler
If a web request is coming from Google crawler or Google bot, the requested “user agent” should look similar like this :
Date: 2019-08-17 View: 1357
-
The type DefaultHttpClient is deprecated
Eclipse IDE prompts warning on new DefaultHttpClient, mark this class as deprecated.
Date: 2019-08-17 View: 1626
-
Emma Class x appears to be instrumented already
Review the “maven-emma-plugin” in pom.xml :
Date: 2019-08-17 View: 1765
-
Maven site build is very slow dependency report
Creating a Maven site, but the build is very slow to generate the dependency report.
Date: 2019-08-17 View: 1716
-
Maven + Emma code coverage example
Emma is a free Java code coverage tool. In this tutorial, we will show you how to use Maven to generate the Emma code coverage report for your project, and also how to integrate the Emma report into the Maven project site.
Date: 2019-08-17 View: 1883
-
MongoDB Aggregate and Group example
In this tutorial, we will show you how to use MongoDB aggregate function to group documents (data).
Date: 2019-08-17 View: 1397
-
java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform
Spring 3.2.x + Hibernate 4.3.x integration, hits JtaPlatform ClassNotFoundException, search the project classpath, find out that JtaPlatform is at different package?
Date: 2019-08-17 View: 1823
-
Spring Security + Hibernate XML Example
In this tutorial, we will show you how to integrate Hibernate 4 in Spring Security, XML configuration example.
Date: 2019-08-17 View: 1507
-
log4j.xml Example
Here’s an XML version of log4j properties file, just for sharing.
Date: 2019-08-17 View: 1354
-
Debian : Change default Java version
Deployed a Debian 7.5 on Linode server, the default is using OpenJDK 1.6. How to upgrade to OpenJDK 1.7?
Date: 2019-08-17 View: 1359
-
Download file from server using SSH
Normally, you use Secure copy or SCP to download a file from another server via SSH connection. For example,
Date: 2019-08-17 View: 1436
-
Log4j hello world example
In this tutorial, we will show you how to use the classic log4j 1.2.x to log a debug or error message in a Java application.
Date: 2019-08-17 View: 1464
-
servlet-api-2.5.jar jar not loaded
Deployed a “war” file on Tomcat, and hits following error messages :
Date: 2019-08-17 View: 1363
-
Java : Unsupported major.minor version 51.0
Run a “jar” on Debian 7.5, and hits the following error messages :
Date: 2019-08-17 View: 1470