maven中的testResources标签

平时做junit测试时.默认都是test可以读取到main中的resource目录配置的..... 今天在做spring boot 的单元测试时.发现test目录下无法读取到main中的resource目录配置..... 解决方案.通过在pom.xml build中添加testResource标签.如下: <!--单元测试时引用src/main/resources下的资源文件 如何test下面有同
相关文章
相关标签/搜索