路由配置修改

pull/4038/head^2
zhangdaiscott 2020-11-30 12:44:22 +08:00
parent d7450cab04
commit df6cf7137c
3 changed files with 17 additions and 16 deletions

View File

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

View File

@ -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 --- ");
// 设置序列化 // 设置序列化

View File

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