From f7ba4dd306c0d621e46d3ca42fde9d8bc80fdf2c Mon Sep 17 00:00:00 2001 From: xiafang Date: Wed, 8 Mar 2023 13:39:11 +0800 Subject: [PATCH] 1.0.18 --- .../payment/wechat/WechatTenantServiceConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatTenantServiceConfiguration.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatTenantServiceConfiguration.java index a34e312..575c93e 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatTenantServiceConfiguration.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/WechatTenantServiceConfiguration.java @@ -22,6 +22,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Conditional; import org.springframework.context.annotation.Configuration; +import org.springframework.core.io.ResourceLoader; /** * The type Wechat tenant service configuration. @@ -42,7 +43,7 @@ public class WechatTenantServiceConfiguration { */ @Bean @ConditionalOnMissingBean - public WechatTenantService wechatTenantService(WechatPayProperties wechatPayProperties) { - return new InMemoryWechatTenantService(wechatPayProperties); + public WechatTenantService wechatTenantService(WechatPayProperties wechatPayProperties, ResourceLoader resourceLoader) { + return new InMemoryWechatTenantService(wechatPayProperties, resourceLoader); } }