mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-27 20:14:52 +08:00
🆕 #1952 增加腾讯企点子模块,用于对接企点开放平台。
This commit is contained in:
@ -12,6 +12,6 @@ import org.springframework.context.annotation.Import;
|
||||
*/
|
||||
@Configuration
|
||||
@EnableConfigurationProperties(WxMpProperties.class)
|
||||
@Import({WxMpStorageAutoConfiguration.class, WxMpServiceAutoConfiguration.class})
|
||||
@Import({ WxMpStorageAutoConfiguration.class, WxMpServiceAutoConfiguration.class })
|
||||
public class WxMpAutoConfiguration {
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ public class WxMpStorageAutoConfiguration {
|
||||
}
|
||||
WxRedisOps redisOps = new JedisWxRedisOps(jedisPool);
|
||||
WxMpRedisConfigImpl wxMpRedisConfig = new WxMpRedisConfigImpl(redisOps,
|
||||
wxMpProperties.getConfigStorage().getKeyPrefix());
|
||||
wxMpProperties.getConfigStorage().getKeyPrefix());
|
||||
setWxMpInfo(wxMpRedisConfig);
|
||||
return wxMpRedisConfig;
|
||||
}
|
||||
@ -114,7 +114,7 @@ public class WxMpStorageAutoConfiguration {
|
||||
|
||||
WxRedisOps redisOps = new RedisTemplateWxRedisOps(redisTemplate);
|
||||
WxMpRedisConfigImpl wxMpRedisConfig = new WxMpRedisConfigImpl(redisOps,
|
||||
wxMpProperties.getConfigStorage().getKeyPrefix());
|
||||
wxMpProperties.getConfigStorage().getKeyPrefix());
|
||||
|
||||
setWxMpInfo(wxMpRedisConfig);
|
||||
return wxMpRedisConfig;
|
||||
@ -160,6 +160,6 @@ public class WxMpStorageAutoConfiguration {
|
||||
}
|
||||
|
||||
return new JedisPool(config, redis.getHost(), redis.getPort(), redis.getTimeout(), redis.getPassword(),
|
||||
redis.getDatabase());
|
||||
redis.getDatabase());
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,6 @@ import java.io.Serializable;
|
||||
import static com.binarywang.spring.starter.wxjava.mp.enums.StorageType.Memory;
|
||||
import static com.binarywang.spring.starter.wxjava.mp.properties.WxMpProperties.PREFIX;
|
||||
|
||||
|
||||
/**
|
||||
* 微信接入相关配置属性.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user