mirror of
https://github.com/traccar/traccar.git
synced 2025-01-09 04:07:38 +08:00
Revert JSR353 removal
This commit is contained in:
parent
69d634fb07
commit
62680cbdc4
@ -63,6 +63,7 @@ dependencies {
|
||||
implementation "org.glassfish.jersey.inject:jersey-hk2:$jerseyVersion"
|
||||
implementation "org.glassfish.hk2:guice-bridge:2.6.1" // same version as jersey-hk2
|
||||
implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jacksonVersion"
|
||||
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr353:$jacksonVersion"
|
||||
implementation "org.liquibase:liquibase-core:4.7.0"
|
||||
implementation "com.sun.mail:javax.mail:1.6.2"
|
||||
implementation "org.jxls:jxls:2.4.7" // needs upgrade (wait for jexl 4)
|
||||
|
@ -17,6 +17,7 @@ package org.traccar;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import com.fasterxml.jackson.datatype.jsr353.JSR353Module;
|
||||
import com.google.inject.AbstractModule;
|
||||
import com.google.inject.Injector;
|
||||
import com.google.inject.Provides;
|
||||
@ -98,6 +99,7 @@ public class MainModule extends AbstractModule {
|
||||
if (config.getBoolean(Keys.WEB_SANITIZE)) {
|
||||
objectMapper.registerModule(new SanitizerModule());
|
||||
}
|
||||
objectMapper.registerModule(new JSR353Module());
|
||||
objectMapper.setConfig(objectMapper
|
||||
.getSerializationConfig().without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS));
|
||||
return objectMapper;
|
||||
|
Loading…
Reference in New Issue
Block a user