Skip to content

Commit

Permalink
fix: exclude extra mappers registration in JacksonFeature (#146)
Browse files Browse the repository at this point in the history
Refs: #173
  • Loading branch information
Jumas authored Sep 2, 2024
1 parent ee6ec8b commit c681097
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class GenericRestApplication extends Application {
@NotNull
public Set<Object> getSingletons() {
Set<Object> singletons = new HashSet<>();
singletons.add(JacksonFeature.withoutExceptionMappers());
singletons.addAll(getAllExceptionMapperSingletons());
singletons.addAll(getAllFilterSingletons());
singletons.addAll(getAllControllerSingletons());
Expand All @@ -50,7 +51,6 @@ public Set<Class<?>> getClasses() {
classes.addAll(getAllExceptionMapperClasses());
classes.addAll(getAllFilterClasses());
classes.addAll(getAllControllerClasses());
classes.add(JacksonFeature.class);
return classes;
}

Expand Down

0 comments on commit c681097

Please sign in to comment.