|
@@ -35,7 +35,7 @@ public class ServletInit {
|
|
@PostConstruct
|
|
@PostConstruct
|
|
public void initClients() {
|
|
public void initClients() {
|
|
// 判断开发环境还是本地环境
|
|
// 判断开发环境还是本地环境
|
|
- if (BeanUtils.remoteOpcServicev() || BeanUtils.isTest()) {
|
|
|
|
|
|
+ if (BeanUtils.isDev() || BeanUtils.isTest()) {
|
|
Boolean has = RedisUtils.hasKey(UpmsRedisKeyConstants.CACHE_ALL_CLIENT);
|
|
Boolean has = RedisUtils.hasKey(UpmsRedisKeyConstants.CACHE_ALL_CLIENT);
|
|
if (has) {
|
|
if (has) {
|
|
return;
|
|
return;
|