summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBharath Balasubramanian <bharathb@research.att.com>2019-03-25 23:12:05 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-25 23:12:05 +0000
commitcf8096a9fe50de511d5864032ed4825a2a314fa5 (patch)
treea7e2f8213daba8f71c5078b1c1a806ca3ae27220 /src
parentbb0b290cf781dad30c3e1db900bf19a7c2b58dda (diff)
parent1c2d702dea2f632a2b7b2516fd29315633976390 (diff)
Merge "Respond error codes responses for wrong urls"2.5.8
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main/java/org/onap/music/JerseyConfig.java2
1 files changed, 2 insertions, 0 deletions
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() {