重构包名,解决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:
@@ -4,7 +4,7 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.jy</groupId>
|
||||
<groupId>top.crushtj</groupId>
|
||||
<artifactId>xiaoyishu</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.jy</groupId>
|
||||
<groupId>top.crushtj</groupId>
|
||||
<artifactId>xiaoyi-framework</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.common.constant;
|
||||
package top.crushtj.framework.common.constant;
|
||||
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.common.exception;
|
||||
package top.crushtj.framework.common.exception;
|
||||
|
||||
/**
|
||||
*
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.common.exception;
|
||||
package top.crushtj.framework.common.exception;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
package com.jy.framework.common.response;
|
||||
package top.crushtj.framework.common.response;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.Data;
|
||||
import com.jy.framework.common.exception.BaseExceptionInterface;
|
||||
import com.jy.framework.common.exception.BizException;
|
||||
import top.crushtj.framework.common.exception.BaseExceptionInterface;
|
||||
import top.crushtj.framework.common.exception.BizException;
|
||||
|
||||
/**
|
||||
*
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.common.utils;
|
||||
package top.crushtj.framework.common.utils;
|
||||
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.common.utils;
|
||||
package top.crushtj.framework.common.utils;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.net.InetAddress;
|
||||
@@ -4,7 +4,7 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.jy</groupId>
|
||||
<groupId>top.crushtj</groupId>
|
||||
<artifactId>xiaoyi-framework</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.jy</groupId>
|
||||
<groupId>top.crushtj</groupId>
|
||||
<artifactId>xiaoyi-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.biz.operationlog;
|
||||
package top.crushtj.framework.biz.operationlog;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Arrays;
|
||||
@@ -12,8 +12,8 @@ import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.aspectj.lang.reflect.MethodSignature;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jy.framework.biz.operationlog.aspect.ApiOperationLog;
|
||||
import com.jy.framework.common.utils.JsonUtils;
|
||||
import top.crushtj.framework.biz.operationlog.aspect.ApiOperationLog;
|
||||
import top.crushtj.framework.common.utils.JsonUtils;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -27,7 +27,7 @@ import com.jy.framework.common.utils.JsonUtils;
|
||||
@Aspect
|
||||
public class ApiOperationLogAspect {
|
||||
/** 以自定义 @ApiOperationLog 注解为切点,凡是添加 @ApiOperationLog 的方法,都会执行环绕中的代码 */
|
||||
@Pointcut("@annotation(com.jy.framework.biz.operationlog.aspect.ApiOperationLog)")
|
||||
@Pointcut("@annotation(top.crushtj.framework.biz.operationlog.aspect.ApiOperationLog)")
|
||||
public void apiOperationLog() {
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.jy.framework.biz.operationlog.aspect;
|
||||
package top.crushtj.framework.biz.operationlog.aspect;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
package com.jy.framework.biz.operationlog.config;
|
||||
package top.crushtj.framework.biz.operationlog.config;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
import com.jy.framework.biz.operationlog.ApiOperationLogAspect;
|
||||
import top.crushtj.framework.biz.operationlog.ApiOperationLogAspect;
|
||||
|
||||
/**
|
||||
*
|
||||
+1
-1
@@ -1 +1 @@
|
||||
com.jy.framework.biz.operationlog.config.ApiOperationLogAutoConfiguration
|
||||
top.crushtj.framework.biz.operationlog.config.ApiOperationLogAutoConfiguration
|
||||
@@ -4,7 +4,7 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.jy</groupId>
|
||||
<groupId>top.crushtj</groupId>
|
||||
<artifactId>xiaoyi-framework</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.jy</groupId>
|
||||
<groupId>top.crushtj</groupId>
|
||||
<artifactId>xiaoyi-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
+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