wildfly 读取服务器目录下文件

docker部署的容器

    private static boolean get_is_ym_temp() {
        try {
            File file = new File("/opt/jboss/wildfly/standalone/data/ym_temp_flag.txt");
            //System.out.println("file " + file.exists() + " " + file.getPath());
            return file.exists();
        } catch (Exception e) {
            return false;
        }
    }
posted @ 2023-01-13 16:52  一只桔子2233  阅读(15)  评论(0编辑  收藏  举报