application.yml文件中配置路径的各种结果

    @Value("${pfx}")
    private String pfxPath;

    File file = new File(pfxPath);
    log.info("pfxPath value " + pfxPath);
    log.info("file.getPath()" + file.getPath());
    log.info("file.getAbsolutePath()" + file.getAbsolutePath());

 

 

 

 

 

posted on 2020-08-28 10:05  我欲皆真  阅读(9201)  评论(0编辑  收藏  举报

导航