Compare commits

..

No commits in common. "252dc70cbc8bfcff9aadaab4b87e0c6f913a7f70" and "a10db4bcb3800bf8145e4843c8f9abed63450079" have entirely different histories.

5 changed files with 13 additions and 32 deletions

View File

@ -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);
}
}

View File

@ -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 {
}

View File

@ -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;
}
}

View File

@ -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

View File

@ -53,4 +53,15 @@ public class GatewayUtils {
}