⚡ 更新依赖,去掉fallback多余的配置
This commit is contained in:
parent
35ea4e6cef
commit
8da5f352d3
|
|
@ -1,35 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
|
||||
* <p>
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* <p>
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* <p>
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springblade.system.config;
|
||||
|
||||
import org.springblade.system.feign.IDictClientFallback;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 字典feign失败配置
|
||||
*
|
||||
* @author Chill
|
||||
*/
|
||||
@Configuration
|
||||
public class DictFeignConfiguration {
|
||||
|
||||
@Bean
|
||||
public IDictClientFallback dictClientFallback() {
|
||||
return new IDictClientFallback();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -17,6 +17,7 @@ package org.springblade.system.feign;
|
|||
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.system.entity.Dict;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -25,6 +26,7 @@ import java.util.List;
|
|||
*
|
||||
* @author Chill
|
||||
*/
|
||||
@Component
|
||||
public class IDictClientFallback implements IDictClient {
|
||||
@Override
|
||||
public R<String> getValue(String code, Integer dictKey) {
|
||||
|
|
|
|||
6
pom.xml
6
pom.xml
|
|
@ -9,14 +9,14 @@
|
|||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<blade.tool.version>2.0.7</blade.tool.version>
|
||||
<blade.tool.version>2.0.8</blade.tool.version>
|
||||
<blade.project.version>2.0.1</blade.project.version>
|
||||
|
||||
<java.version>1.8</java.version>
|
||||
<swagger.version>2.9.2</swagger.version>
|
||||
<swagger.models.version>1.5.21</swagger.models.version>
|
||||
<swagger.bootstrapui.version>1.8.9</swagger.bootstrapui.version>
|
||||
<mybatis.plus.version>3.0.7.1</mybatis.plus.version>
|
||||
<swagger.bootstrapui.version>1.9.0</swagger.bootstrapui.version>
|
||||
<mybatis.plus.version>3.1.0</mybatis.plus.version>
|
||||
<curator.framework.version>4.0.1</curator.framework.version>
|
||||
<protostuff.version>1.6.0</protostuff.version>
|
||||
<mica.auto.version>1.0.1</mica.auto.version>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user