File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/org/tuna/zoopzoop/backend/global/config Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11package org .tuna .zoopzoop .backend .global .config ;
22
3+ import com .fasterxml .jackson .databind .MapperFeature ;
34import com .fasterxml .jackson .databind .Module ;
45import org .openapitools .jackson .nullable .JsonNullableModule ;
6+ import org .springframework .boot .autoconfigure .jackson .Jackson2ObjectMapperBuilderCustomizer ;
57import org .springframework .context .annotation .Bean ;
68import org .springframework .context .annotation .Configuration ;
79
@@ -11,4 +13,9 @@ public class JacksonConfig {
1113 public Module jsonNullableModule () {
1214 return new JsonNullableModule ();
1315 }
14- }
16+
17+ @ Bean
18+ public Jackson2ObjectMapperBuilderCustomizer enumsCaseInsensitive () {
19+ return builder -> builder .featuresToEnable (MapperFeature .ACCEPT_CASE_INSENSITIVE_ENUMS );
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments