widescreen-spring-wallpaper-2011-300x187

Spring MVC – Full java based config

Spring MCV is a very powerful and flexible framework for web application development. It doesn’t just implement the MVC pattern, it allows you to develop Rest web services.     This post presents a web project sample with a full java configuration using Spring MVC 4 and Servlet 3 api. The code source is available in…

Persistence_240

Spring-Data-JPA

Implementing persistence layer may need some effort to configure and develop some DAO classes. Spring-Data-JPA framework can simplify the creation of JPA based repositories and to reduce the amount of code needed to communicate with a database     Photo credit Ivan Kmit This post is an introduction to Spring-Data-JPA. It describes, how you can configure…

log1

Logback – Dynamic creation of log files

Some project have some log constraints that are difficult to implements with Log4j. Logback is an alternative to log4j. It gives you more possibilities and it can easily implements your log policies.     Origami by Brian Chan In this post, I present a simple of Logback configuration for a maven project. This configuration implements a…

Mock-ito

JUnit test with Mockito and Spring

It is important to be able to perform some integration testing without requiring deployment to your application server or connecting to other enterprise infrastructure. This could be done in your Spring project by using Spring-test library and Mockito framework.     Photo credit: Honey In this post, I present a simple way to create a mock…