重构包名,解决JacksonAutoConfiguration被spring boot默认JacksonAutoConfiguration配置覆盖的问题
Sync All Branches to GitHub / sync (push) Successful in 2s
Sync All Branches to GitHub / sync (push) Successful in 2s
This commit is contained in:
+5
-3
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.jackson;
|
||||
package top.crushtj.framework.jackson;
|
||||
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
@@ -13,9 +13,10 @@ import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;
|
||||
import com.fasterxml.jackson.datatype.jsr310.ser.YearMonthSerializer;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import com.jy.framework.common.constant.DateConstants;
|
||||
import com.jy.framework.common.utils.JsonUtils;
|
||||
import top.crushtj.framework.common.constant.DateConstants;
|
||||
import top.crushtj.framework.common.utils.JsonUtils;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
@@ -32,6 +33,7 @@ import java.util.TimeZone;
|
||||
*/
|
||||
|
||||
@AutoConfiguration
|
||||
@AutoConfigureBefore(org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class)
|
||||
public class JacksonAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
+1
-1
@@ -1 +1 @@
|
||||
com.jy.framework.jackson.JacksonAutoConfiguration
|
||||
top.crushtj.framework.jackson.JacksonAutoConfiguration
|
||||
Reference in New Issue
Block a user