获取 classpath,jar包形式也可以



获取 classpath

String path = ResourceUtils.getURL(“classpath:”).getPath();

log.info("=========="+path);