package com.gauravbytes.hellogb;

import javax.ws.rs.ApplicationPath;

import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.context.annotation.Configuration;

import com.gauravbytes.hellogb.controller.BookController;

/**
 * 
 * @author Gaurav Rai Mazra
 * <a href="http://www.gauravbytes.com">Catch me</a>
 */
@Configuration
@ApplicationPath("rest")
public class JerseyConfiguration extends ResourceConfig {
	public JerseyConfiguration() {
		register(BookController.class);
		register(GenericExceptionMapper.class);
	}
}

@@ -25,24 +25,64 @@
 hellogb;%0D%0A%0D%0A
+import javax.annotation.PostConstruct;%0D%0A
 import javax
@@ -517,16 +517,68 @@
 on() %7B%0D%0A
+%09%09%0D%0A%09%7D%0D%0A%09%0D%0A%09@PostConstruct%0D%0A%09public void setUp() %7B%0D%0A
 %09%09regist

refactoring. called register method after bean construction