| | |
| | | package com.ruoyi.shop.config; |
| | | |
| | | import com.github.binarywang.wxpay.config.WxPayConfig; |
| | | import com.github.binarywang.wxpay.service.WxPayService; |
| | | import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl; |
| | | import lombok.AllArgsConstructor; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | |
| | | public class WxPayConfiguration { |
| | | private WxPayProperties properties; |
| | | |
| | | @Bean |
| | | /*@Bean |
| | | @ConditionalOnMissingBean |
| | | public WxPayService wxService() { |
| | | WxPayConfig payConfig = new WxPayConfig(); |
| | |
| | | WxPayService wxPayService = new WxPayServiceImpl(); |
| | | wxPayService.setConfig(payConfig); |
| | | return wxPayService; |
| | | } |
| | | }*/ |
| | | |
| | | } |