Jitendra Singh


Restrict Ajax request caching in SpringSecurity

Spring Security has a nice feature of request caching. When user try to access secured resource without logging in into the system, spring security caches that request and redirect the user to the login page. After successful authentication it redirects user to that cached request. This works for both Ajax and non-ajax requests. To...



Handling large files using JavaNIO MappedByteBuffer

In almost every project we need to deal with files. But what if size of file is too large ?? Heap gets full and JVM rewards us by throwing OutOfMemoryError. Java provides a class called MappedByteBuffer (part of JavaNIO), which helps us dealing with large size files. MappedByteBuffer is a class which creates Virtual-memory mapping...