From 1c2d702dea2f632a2b7b2516fd29315633976390 Mon Sep 17 00:00:00 2001 From: "Tschaen, Brendan" Date: Wed, 20 Mar 2019 13:53:28 -0400 Subject: Respond error codes responses for wrong urls Change-Id: I7fddb09af825755394b0f75e993bc9ea64a8c82d Issue-ID: MUSIC-368 Signed-off-by: Tschaen, Brendan --- src/main/java/org/onap/music/JerseyConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/onap/music/JerseyConfig.java b/src/main/java/org/onap/music/JerseyConfig.java index 1b5f034a..b3118469 100755 --- a/src/main/java/org/onap/music/JerseyConfig.java +++ b/src/main/java/org/onap/music/JerseyConfig.java @@ -20,6 +20,7 @@ import io.swagger.jaxrs.config.BeanConfig; import io.swagger.jaxrs.listing.ApiListingResource; import io.swagger.jaxrs.listing.SwaggerSerializers; import org.glassfish.jersey.server.ResourceConfig; +import org.onap.music.exceptions.MusicExceptionMapper; import org.onap.music.rest.*; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -32,6 +33,7 @@ import javax.annotation.PostConstruct; public JerseyConfig() { this.registerEndpoints(); + register(MusicExceptionMapper.class); } @PostConstruct public void init() { -- cgit 1.2.3-korg