-
ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException
Spring + Hibernate4 integration, and transaction are managed by Spring AOP, example :
Date: 2019-08-17 View: 1520
-
Java Custom Annotations Example
In this tutorial, we will show you how to create two custom annotations – @Test and @TestInfo, to simulate a simple unit test framework.
Date: 2019-08-17 View: 1520
-
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: 1520
-
MongoDB : write Aggregation result into a new collection
This article shows you 2 ways to export a MongoDB “aggregation” result into another new collection.
Date: 2019-08-17 View: 1520
-
Java Read a text file line by line
This article covers 3 ways to read a text file line by line :
Date: 2019-08-17 View: 1520
-
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: 1520
-
Spring MVC Catch the exceptions thrown by view page
Here’s the scenario, the controller returns a ModelAndView, and an exception is thrown while rendering the JSP view page, reason behind is one of message code is not found.
Date: 2019-08-17 View: 1520
-
How to read and write Java object to a file
Java object Serialization is an API provided by Java Library stack as a means to serialize Java objects. Serialization is a process to convert objects into a writable byte stream. Once converted into a byte-stream, these objects can be written to a file. The reverse process of this is called de-serialization.
Date: 2019-08-17 View: 1520
-
Java find class fields with specified data type
Some Java reflection API examples.
Date: 2019-08-17 View: 1520
-
Hamcrest How to assertThat check null value?
Try to check null value with the Hamcrest assertThat assertion, but no idea how?
Date: 2019-08-17 View: 1520
-
Java Custom Exception Examples
In Java, there are two types of exceptions – checked and unchecked exception. Here’s the summary :
Date: 2019-08-17 View: 1520
-
iText Read and Write PDF in Java
This article talks about reading and writing PDF using iText PDF library.
Date: 2019-08-11 View: 1520
-
Spring Boot @ConfigurationProperties example
Spring Boot @ConfigurationProperties is letting developer maps the entire .properties and yml file into an object easily.
Date: 2019-08-11 View: 1520
-
Java Swing JOptionPane showOptionDialog example
The showOptionDialog method of JOptionPane is the Grand Unification of showConfirmDialog, showInputDialog and showMessageDialog.
Date: 2019-08-11 View: 1520
-
Spring file upload and connection reset issue
A Spring servlet initializer to configure the file upload limit, 5mb per file and 10mb per request.
Date: 2019-08-11 View: 1520