0
点赞
收藏
分享

微信扫一扫

205-java 从资源目录获取txt内容

java 从资源目录获取txt内容

public String getCookie() {
        ClassPathResource classPathResource = new ClassPathResource("cookie.txt");
        String ck = FileUtil.readString(classPathResource.getAbsolutePath(), CharsetUtil.CHARSET_UTF_8);
        return ck;
    }
举报

相关推荐

0 条评论