Wednesday, September 27, 2017

React 16.0 released

React 16.0 is released today which is built on top of new core architecture named 'Fiber'.
Most importantly, they are not breaking backward compatibility like what Angular did while releasing 2.0.
They are now using MIT open source licence so all the confusion around licencing issues is gone.

Here is a link which gives detailed overview of the release.

Monday, September 11, 2017

Java 9 releasing on 21 September 2017

After postponing release many times, finally Java 9 will be releasing on 21 September 2017.
It is much awaited release of Java as there are many structural changes coming with this release in platform.
Java 9 is Modular Java.
Pre-general availability documentation is available on Oracle website.

Link to documentation:
https://docs.oracle.com/javase/9/whatsnew/toc.htm#JSNEW-GUID-C23AFD78-C777-460B-8ACE-58BE5EA681F6

More details about Java 9 project is available at:
http://openjdk.java.net/projects/jdk9/

Java 9 is finally released and JDK download link is:
http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

Sunday, September 10, 2017

Interceptor for Spring Rest controller

Create a java class which extends HandlerInterceptorAdapter.
You can override preHandle and postHandle methods as per your requirement.

public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
System.out.println("In Prehandle");
}
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
    System.out.println("In postHandle");
}

In spring-mvc-context.xml file, define class as interceptor as

 
  

Now your interceptor class should intercept all requests towards Rest controller.