摘要:
在application.yml放在spring下面 main: allow-bean-definition-overriding: true allow-circular-references: true 2.6.0后关闭了循环引用,需要开启报错信息: org.springframework.be 阅读全文
posted @ 2022-07-07 16:45
道行太浅
阅读(3404)
评论(0)
推荐(0)
摘要:
maven的pom文件处理 ①将resource标签配置如下 <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>bootstrap.yml</inc 阅读全文
posted @ 2022-07-07 16:37
道行太浅
阅读(683)
评论(0)
推荐(0)
摘要:
原因:本地用获取路径方式没问题,线上就出现打印 jar目录的问题。 第一种: String classpath = this.getClass().getResource("/").getPath(); //拿到项目的文件,转换成文件输入流 ClassPathResource resource = 阅读全文
posted @ 2022-07-07 16:36
道行太浅
阅读(364)
评论(0)
推荐(0)
摘要:
可以查看所有需要的pom包里面相关版本和引用 https://mvnrepository.com/ 阅读全文
posted @ 2022-07-07 16:25
道行太浅
阅读(234)
评论(0)
推荐(0)

浙公网安备 33010602011771号