git.properties 对于 spring 引导自动配置不可见
git.properties is not visible for spring boot autoconfigure
我使用gradle插件生成git.properties
:
id 'com.gorylenko.gradle-git-properties' version '2.2.0'
生成
/resources/main/git.properties
但是当 GitResourceAvailableCondition
在 spring-boot-autoconfigure
中计算时
ResourceLoader
表示classpath:git.properties
不存在
如何指向我的资源以使其可见?
事实证明,当来自 Idea 插件的 运行 没有被执行时 - 我已经将 Idea 中的配置更改为使用 gradle 并且它工作得很好
我使用gradle插件生成git.properties
:
id 'com.gorylenko.gradle-git-properties' version '2.2.0'
生成
/resources/main/git.properties
但是当 GitResourceAvailableCondition
在 spring-boot-autoconfigure
中计算时
ResourceLoader
表示classpath:git.properties
不存在
如何指向我的资源以使其可见?
事实证明,当来自 Idea 插件的 运行 没有被执行时 - 我已经将 Idea 中的配置更改为使用 gradle