@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());

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

 

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

 

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

 

相关文章:

  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案