Jason Song
Jason Song
是否更好的方式是让用户自定义实现 ServerProvider? 默认的 DefaultServerProvider 可以保留原有的配置规范,如果公司有不同的规范或读取路径的,可以自定义一个新的实现。
Good Question! 目前 Portal 在系统信息页面确实没有支持多集群部署的情况,这个得考虑下如何支持,一个初步的方案是增加一个配置项,比如以环境+集群为维度来配置 meta server,当对应环境没有该配置的话就用 apollo.portal.meta.servers 的值,如果有的话就用该配置项覆盖
You may specify the envs in [apollo.portal.envs](https://www.apolloconfig.com/#/zh/deployment/distributed-deployment-guide?id=_311-apolloportalenvs-%e5%8f%af%e6%94%af%e6%8c%81%e7%9a%84%e7%8e%af%e5%a2%83%e5%88%97%e8%a1%a8) and config the meta server addesses in [apollo.portal.meta.servers](https://www.apolloconfig.com/#/zh/deployment/distributed-deployment-guide?id=_312-apolloportalmetaservers-%e5%90%84%e7%8e%af%e5%a2%83meta-service%e5%88%97%e8%a1%a8).
This is an interesting topic to discuss. Apollo now requires guava 20.0+, can you upgrade to this version? #4369 discusses the pros and cons of shading guava into apollo-client, and...
You could declare the guava version in the `dependencyManagement` section of your project's pom.xml, e.g. ```xml com.google.guava guava 31.0.1-jre ```
很好的建议
@rhaonan Portal的查询权限功能可以参考[6.1 配置查看权限](https://github.com/ctripcorp/apollo/wiki/Apollo%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97#61-%E9%85%8D%E7%BD%AE%E6%9F%A5%E7%9C%8B%E6%9D%83%E9%99%90)
这个和服务端没有转义没有关系,在tomcat这一层就拦截了,详见[org.apache.tomcat.util.buf. UDecoder.ALLOW_ENCODED_SLASH](https://tomcat.apache.org/tomcat-8.5-doc/config/systemprops.html#Security)。 另外spring security默认也会阻止这类参数,详见[setAllowUrlEncodedSlash](https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/web/firewall/StrictHttpFirewall.html#setAllowUrlEncodedSlash-boolean-)
技术上是可以的,不过改接口的话,得考虑下向后兼容的问题,另外想问下什么样配置项是包含`/`的?
看了一下是前端发起请求到后端时就trim掉了,@lepdou 还记得为啥会trim吗?