标签:directory etc 路径 sys jpg canonical can ica pat
File directory = new File("src/main/resources/static/pic"); String courseFile = directory.getCanonicalPath(); System.out.println(courseFile);
资源映射
<resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.yml</include> <include>**/*.xml</include> <include>**/*.xls</include> <include>**/*.png</include> <include>**/*.jpg</include> </includes> </resource> </resources>
标签:directory etc 路径 sys jpg canonical can ica pat
原文地址:https://www.cnblogs.com/chenziyue/p/12882496.html