You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/06/30 08:30:45 UTC

[GitHub] [dubbo] yindz commented on issue #9891: 3.0.7 dubbo.cache is not exclusive.

yindz commented on issue #9891:
URL: https://github.com/apache/dubbo/issues/9891#issuecomment-1170925576

   > 区分开文件地址,我是启动的时候直接配置了目录是jar包目录,
   > 
   > ```java
   > public static void main(String[] args) {
   >         ApplicationHome home = new ApplicationHome(Dubbo3ConsumerApplication.class);
   >         File jarFile = home.getSource();
   >         String dirPath = jarFile.getParentFile().toString();
   >         String filePath = dirPath + File.separator + ".dubbo";
   >         System.out.println(filePath);
   > 
   >         System.setProperty("dubbo.meta.cache.filePath", filePath);
   >         System.setProperty("dubbo.mapping.cache.filePath",filePath);
   > 
   >         //
   >         SpringApplication.run(Dubbo3ConsumerApplication.class, args);
   >     }
   > ```
   
   这个方法确实可行。真正在服务器集群部署的时候,也可以直接在启动脚本的JVM参数里指定一下。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org