提交 df6cf713 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

路由配置修改

上级 d7450cab
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
size="large" size="large"
v-decorator="['username',validatorRules.username,{ validator: this.handleUsernameOrEmail }]" v-decorator="['username',validatorRules.username,{ validator: this.handleUsernameOrEmail }]"
type="text" type="text"
placeholder="请输入帐户名 / jeecg"> placeholder="请输入帐户名 / admin">
<a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/> <a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
</a-input> </a-input>
</a-form-item> </a-form-item>
......
...@@ -41,6 +41,7 @@ public class RedisConfiguration { ...@@ -41,6 +41,7 @@ public class RedisConfiguration {
* @return * @return
*/ */
@Bean @Bean
@ConditionalOnMissingBean(RedisTemplate.class)
public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) { public RedisTemplate<String, Object> redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) {
log.info(" --- redis config init --- "); log.info(" --- redis config init --- ");
// 设置序列化 // 设置序列化
......
...@@ -33,21 +33,21 @@ spring: ...@@ -33,21 +33,21 @@ spring:
uri: lb:ws://jeecg-demo uri: lb:ws://jeecg-demo
predicates: predicates:
- Path=/vxeSocket/** - Path=/vxeSocket/**
# 全局熔断降级配置 # 全局熔断降级配置
default-filters: default-filters:
- name: Hystrix - name: Hystrix
args: args:
name: default name: default
#转发地址 #转发地址
fallbackUri: 'forward:/fallback' fallbackUri: 'forward:/fallback'
- name: Retry - name: Retry
args: args:
#重试次数,默认值是 3 次 #重试次数,默认值是 3 次
retries: 3 retries: 3
#HTTP 的状态返回码 #HTTP 的状态返回码
statuses: BAD_GATEWAY,BAD_REQUEST statuses: BAD_GATEWAY,BAD_REQUEST
#指定哪些方法的请求需要进行重试逻辑,默认值是 GET 方法 #指定哪些方法的请求需要进行重试逻辑,默认值是 GET 方法
methods: GET,POST methods: GET,POST
# hystrix 信号量隔离,3秒后自动超时 # hystrix 信号量隔离,3秒后自动超时
hystrix: hystrix:
enabled: true enabled: true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册