Simon Ma
Simon Ma
现在注解是在ReferenceAnnotationBeanPostProcessor阶段处理,扫描注解创建RPC代理对象,并通过反射的方式放到了注入点。 想法: 1. 能否直接提供一个静态类工厂类(SofaRpcFactory)和一个通用配置文件(SofaProperties)。在这个工厂内提供create方法,内部做各种RPC初始化操作,并返回RPC动态代理接口对象。 `TestFacade SofaRpcFactory.create(TestFacade.class, props)`。 这样做可以直接将Client初始化完全黑盒在RPC组件内,将Facade的生命周期绑定到spring容器中去,初始化阶段不再依赖注解,显式的用`@Bean`将RPC和Spring连接起来。 这个想法来源于Retrofit2的客户端构造过程: `retrofit2.Retrofit#create` 2. 提供EnableSofaRPC注解,通过import的方式激活Registrar,用Registrar配合Scanner进行扫描注册Bean。这里可以定一个规范,本地要有一个Facade接口继承其他服务的Facade包并带上`@SofaRpcClient`注解,或者开发者需要给出一个调用Facade 的Class列表供框架扫描。 这个想法来源于 Spring Cloud FeignClient的做法
### Describe the feature PaLM Proxy On Netlify is Available Now Doc: [https://simonmy.com/posts/使用netlify反向代理google-palm-api.html](https://simonmy.com/posts/使用netlify反向代理google-palm-api.html) ### Additional context _No response_ ### Participation - [ ] I am willing to submit a pull...
### Checklist - [x] I am reporting an issue in existing functionality that does not work as intended - [x] I've searched for existing [GitHub issues](https://github.com/telegrammessenger/Telegram-iOS/issues) ### Description Why use...
### 确认版本最新 - [x] 我已经确认在最新Action编译的版本中复现 ### 检索issue - [x] 我已经确认之前没有issue涉及此BUG ### subconverter版本 latest ### 转换过程 目标为Surge时,hysteria协议错误 ### 转换设置 默认配置 ### 复现步骤 ``` https://sub.xeton.dev/sub?target=surge&ver=4&new_name=true&url=hysteria2%3A%2F%2Ftoken%40mocknode.com%3A12345%2F%3Finsecure%3D1%26sni%3Dwww.bing.com%23MockNode ``` Mock一个节点即可 ### 期望结果 Proxy部分协议应该为 `hysteria2` ```...