Solo  当前访客:0 开始使用

wex5外部部署,如何刷新缓存


1、参考官网文档

2、如果第一步无法解决,

找到 conf/server.xml

修改version的属性值

 

解决方案来源:

wex5 读取配置的代码

ServerConfig

 String str = paramString + "/conf/server.xml";
    File localFile = new File(str);
    if ((!localFile.exists()) || (localFile.isDirectory())) {
      return;
    }
    try
    {
      SAXReader localSAXReader = new SAXReader();
      Document localDocument = localSAXReader.read(localFile);
      Element localElement1 = localDocument.getRootElement();
      Iterator localIterator = localElement1.elements().iterator();
      while (localIterator.hasNext())
      {
        Object localObject = localIterator.next();
        Element localElement2 = (Element)localObject;
        if (localElement2 != null) {
          if (localElement2.getName().equals("default-user"))
          {
            jdField_a_of_type_JavaLangString = localElement2.elementTextTrim("name");
            b = localElement2.elementTextTrim("password");
          }
          else if (localElement2.getName().equals("version"))
          {
            c = localElement2.getTextTrim();
            if (SystemUtils.isNotEmptyString(c)) {
              c = c.replaceAll("\\.", "_");
            }
          }
          else if (localElement2.getName().equals("distributed"))
          {
            jdField_a_of_type_Boolean = localElement2.getTextTrim().equalsIgnoreCase("true");
          }
          else
          {
            jdField_a_of_type_JavaUtilMap.put(localElement2.getName(), localElement2.getTextTrim());
          }
        }
      }
    }

 

 


标题:wex5外部部署,如何刷新缓存
作者:hugh0524
地址:https://blog.uproject.cn/articles/2017/07/14/1500017825727.html

, , , 0 0