Comments (4)
WxMpConfigStorage 仅是一个接口,赋值需要由其实现类完成set方法,具体可以参考me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage 这个实现类
from wxjava.
我的意思是将set方法也卸载接口中,这样在编程的时候引用类型就可以是WxMpConfigStorage ,而不是具体的实现类
from wxjava.
基本明白你的意思,你的需求有点特别,不太建议你这么做,一般来说这种配置性质的信息在系统始化设置后就无需修改,除非你有即时修改配置使其生效的需求,这种情况下一般也是在你知道其实例化的类型的前提下完成的,你就可以进行强转实现。
from wxjava.
而且如果在接口中实现这些set方法,会造成其接口实现类也必要实现该set方法,而事实上实现类可能不需要这些set方法,完全可以通过spring注入实现相应属性的设值。所以如果你确实觉得需要接口来提供这些方法,你可以尝试继承该接口,实现你自己的定制接口即可
from wxjava.
Related Issues (20)
- 投诉通知验签错误 HOT 1
- 没找到小程序备案的接口,自己根据楼主的风格,手搓了一份 HOT 2
- com.thoughtworks.xstream.security.ForbiddenClassException HOT 4
- 视频号订单缺失属性AddressInfo.hash_code HOT 1
- 【feature】获取汇报记录详情
- 微信支付多商户号问题
- WxChannel 视频号板块 没有分享员绑定接口通知 HOT 1
- markdown HOT 1
- MP_微信消息路由器,异步出路,收不到回复的消息 HOT 5
- 使用 MybatisPlus 多租户插件疑问 HOT 5
- 微信小程序用户信息解密方法不返回openid吗 HOT 6
- 是否可以加入企业微信文档相关接口 HOT 1
- 支持java21的版本有嘛?
- 企微第三方加好友回调,创建时间一样被判定为重复消息 HOT 2
- 该公众号提供服务出现故障,请稍后重试 HOT 5
- HttpResponseProxy#extractFileNameFromContentString 正则匹配失败
- WxMpHostConfig地址需要支持配置化 HOT 1
- 支付私钥字符串BUG
- TransferCreateResult 商家转账到零钱,新增 batch_status 返回值,版本4.6.0 HOT 1
- https://developer.work.weixin.qq.com/document/path/97126 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxjava.