随笔分类 -  疑难杂症

摘要:import cn.dolphin.core.exception.IoRuntimeException; import cn.dolphin.core.result.ApiResult; import cn.dolphin.core.util.Utf8Util; import com.alibaba 阅读全文
posted @ 2022-07-21 11:02 道行太浅 阅读(740) 评论(0) 推荐(0) 编辑
摘要:在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 道行太浅 阅读(3215) 评论(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 道行太浅 阅读(614) 评论(0) 推荐(0) 编辑
摘要:原因:本地用获取路径方式没问题,线上就出现打印 jar目录的问题。 第一种: String classpath = this.getClass().getResource("/").getPath(); //拿到项目的文件,转换成文件输入流 ClassPathResource resource = 阅读全文
posted @ 2022-07-07 16:36 道行太浅 阅读(344) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示