提交 a7f91ed9 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 45851549
...@@ -16,7 +16,7 @@ zuul: ...@@ -16,7 +16,7 @@ zuul:
serviceId: ibzdict-api serviceId: ibzdict-api
stripPrefix: false stripPrefix: false
wf_group_member: wf_group_member:
path: /wf_group_members/** path: /wfmembers/**
serviceId: ibzwf-api serviceId: ibzwf-api
stripPrefix: false stripPrefix: false
ibzdict: ibzdict:
...@@ -24,15 +24,15 @@ zuul: ...@@ -24,15 +24,15 @@ zuul:
serviceId: ibzdict-api serviceId: ibzdict-api
stripPrefix: false stripPrefix: false
wf_user: wf_user:
path: /wf_users/** path: /wfusers/**
serviceId: ibzwf-api serviceId: ibzwf-api
stripPrefix: false stripPrefix: false
ibzorg: ibzorg:
path: /ibzorgs/** path: /ibzorganizations/**
serviceId: ibzou-api serviceId: ibzou-api
stripPrefix: false stripPrefix: false
wf_group: wf_group:
path: /wf_groups/** path: /wfgroups/**
serviceId: ibzwf-api serviceId: ibzwf-api
stripPrefix: false stripPrefix: false
sys_user_role: sys_user_role:
...@@ -44,7 +44,7 @@ zuul: ...@@ -44,7 +44,7 @@ zuul:
serviceId: ibzuaa-api serviceId: ibzuaa-api
stripPrefix: false stripPrefix: false
ibzdept: ibzdept:
path: /ibzdepts/** path: /ibzdepartments/**
serviceId: ibzou-api serviceId: ibzou-api
stripPrefix: false stripPrefix: false
sys_permission: sys_permission:
...@@ -52,7 +52,7 @@ zuul: ...@@ -52,7 +52,7 @@ zuul:
serviceId: ibzuaa-api serviceId: ibzuaa-api
stripPrefix: false stripPrefix: false
ibzemp: ibzemp:
path: /ibzemps/** path: /ibzemployees/**
serviceId: ibzou-api serviceId: ibzou-api
stripPrefix: false stripPrefix: false
loginv7: loginv7:
......
...@@ -19,7 +19,7 @@ import org.springframework.util.StringUtils; ...@@ -19,7 +19,7 @@ import org.springframework.util.StringUtils;
@EnableCaching @EnableCaching
@Configuration @Configuration
@EnableConfigurationProperties(CacheProperties.class) @EnableConfigurationProperties(CacheProperties.class)
@ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('oneLevel')") @ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('L1')")
public class CaffeineCacheConfig { public class CaffeineCacheConfig {
@Autowired @Autowired
......
...@@ -36,7 +36,7 @@ import org.springframework.util.StringUtils; ...@@ -36,7 +36,7 @@ import org.springframework.util.StringUtils;
@EnableCaching @EnableCaching
@Configuration @Configuration
@EnableConfigurationProperties(CacheProperties.class) @EnableConfigurationProperties(CacheProperties.class)
@ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('twoLevel')") @ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('L2')")
public class RedisCacheConfig { public class RedisCacheConfig {
@Autowired @Autowired
......
...@@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit; ...@@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit;
*/ */
@Data @Data
@Component @Component
@ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('oneLevel')") @ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('L1')")
public class CaffeineCacheManager implements CacheManager { public class CaffeineCacheManager implements CacheManager {
private static final int DEFAULT_EXPIRE_AFTER_WRITE = 1; private static final int DEFAULT_EXPIRE_AFTER_WRITE = 1;
......
...@@ -27,7 +27,7 @@ import java.util.concurrent.TimeUnit; ...@@ -27,7 +27,7 @@ import java.util.concurrent.TimeUnit;
*/ */
@Data @Data
@Component @Component
@ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('twoLevel')") @ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('L2')")
public class LayeringCacheManager implements CacheManager { public class LayeringCacheManager implements CacheManager {
private static final int DEFAULT_EXPIRE_AFTER_WRITE = 1; private static final int DEFAULT_EXPIRE_AFTER_WRITE = 1;
......
...@@ -22,7 +22,7 @@ import java.util.Map; ...@@ -22,7 +22,7 @@ import java.util.Map;
*/ */
@Component @Component
@ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('twoLevel')") @ConditionalOnExpression("'${ibiz.cacheLevel:None}'.equals('L2')")
public class RedisMessageListener extends MessageListenerAdapter { public class RedisMessageListener extends MessageListenerAdapter {
private static final Logger logger = LoggerFactory.getLogger(RedisPublisher.class); private static final Logger logger = LoggerFactory.getLogger(RedisPublisher.class);
@Autowired @Autowired
......
...@@ -78,9 +78,9 @@ ribbon: ...@@ -78,9 +78,9 @@ ribbon:
ConnectTimeout: 60000 ConnectTimeout: 60000
#系统是否开启权限验证、是否开启缓存 #系统是否开启权限验证、是否开启缓存
#缓存级别:无缓存(无配置项)、一级缓存(oneLevel)、二级缓存(twoLevel) #缓存级别:无缓存(无配置项)、一级缓存(L1)、二级缓存(L2)
ibiz: ibiz:
enablePermissionValid: true enablePermissionValid: true
cacheLevel: oneLevel #一级缓存,本地caffeine缓存 cacheLevel: L1 #一级缓存,本地caffeine缓存
#cacheLevel: twoLevel #二级缓存,本地caffeine缓存+Redis缓存 #cacheLevel: L2 #二级缓存,本地caffeine缓存+Redis缓存
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册