Add ApiApplication class to configure Jersey and register Jackson feature
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
package com.humanbooster.api;
|
||||||
|
|
||||||
|
import org.glassfish.jersey.jackson.JacksonFeature;
|
||||||
|
import org.glassfish.jersey.server.ResourceConfig;
|
||||||
|
|
||||||
|
public class ApiApplication extends ResourceConfig {
|
||||||
|
public ApiApplication() {
|
||||||
|
packages("com.humanbooster");
|
||||||
|
register(JacksonFeature.class);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user