摘要:
maven的pom文件处理 ①将resource标签配置如下 <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>bootstrap.yml</inc 阅读全文
摘要:
原因:本地用获取路径方式没问题,线上就出现打印 jar目录的问题。 第一种: String classpath = this.getClass().getResource("/").getPath(); //拿到项目的文件,转换成文件输入流 ClassPathResource resource = 阅读全文
摘要:
可以查看所有需要的pom包里面相关版本和引用 https://mvnrepository.com/ 阅读全文