Compare commits
No commits in common. "252dc70cbc8bfcff9aadaab4b87e0c6f913a7f70" and "a10db4bcb3800bf8145e4843c8f9abed63450079" have entirely different histories.
252dc70cbc
...
a10db4bcb3
|
@ -42,6 +42,7 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T> {
|
|||
return null;
|
||||
}
|
||||
String str = new String(bytes, DEFAULT_CHARSET);
|
||||
|
||||
return JSON.parseObject(str, clazz, AUTO_TYPE_FILTER);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
package com.bwie.common.remote.system;
|
||||
|
||||
import com.bwie.common.constant.ServerNameConstants;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
|
||||
@FeignClient(
|
||||
name = ServerNameConstants.SYSTEM_NAME,
|
||||
fallbackFactory = RemoteUserService.class
|
||||
)
|
||||
public interface RemoteUserService {
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package com.bwie.common.remote.system.factory;
|
||||
|
||||
import com.bwie.common.remote.system.RemoteUserService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Log4j2
|
||||
public class RemoteUserFactory implements FallbackFactory<RemoteUserService> {
|
||||
@Override
|
||||
public RemoteUserService create(Throwable cause) {
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,6 +1 @@
|
|||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.bwie.common.config.MybatisPlusConfig,\
|
||||
com.bwie.common.handler.GlobalExceptionHandle,\
|
||||
com.bwie.common.config.RedisConfig,\
|
||||
com.bwie.common.redis.RedisCache,\
|
||||
com.bwie.common.remote.system.factory.RemoteUserFactory
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.bwie.common.config.MybatisPlusConfig,\com.bwie.common.handler.GlobalExceptionHandle,\com.bwie.common.config.RedisConfig,\com.bwie.common.redis.RedisCache,\com.bwie.common.remote.system.factory.RemoteUserFactory
|
||||
|
|
|
@ -53,4 +53,15 @@ public class GatewayUtils {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue