package com.acbook.apiserver;

import org.glassfish.jersey.filter.LoggingFilter;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.ServerProperties;

import com.acbook.apiserver.common.CharsetResponseFilter;
import com.acbook.apiserver.common.GsonMessageProvider;

public class ACBookApplication extends ResourceConfig {

    private static final String[] RESOURCE_PACKAGES = { "com.acbook.apiserver.resources" };

    public ACBookApplication() {
        packages(RESOURCE_PACKAGES);
        // register(ACBookContextLoaderListener.class);
        register(LoggingFilter.class);
        register(CharsetResponseFilter.class);
        register(GsonMessageProvider.class);
        property(ServerProperties.METAINF_SERVICES_LOOKUP_DISABLE, true);
    }

}

@@ -351,16 +351,57 @@
 nfig %7B%0A%0A
+    /** Rest target resources package */%0A
     priv
@@ -485,16 +485,195 @@
 es%22 %7D;%0A%0A
+    /**%0A     * Constructor %3E%3E Initialize process%0A     * %0A     * 1.Set LoggingFilter%0A     * 2.Set response charset to UTF-8%0A     * 3.Set Gson serializer to response entity%0A     */%0A
     publ
@@ -738,64 +738,8 @@
 S);%0A
-        // register(ACBookContextLoaderListener.class);%0A
     

Modify comment