HeroOnline

Results 5 comments of HeroOnline

JetCache技术交流,钉钉群: 21914454

com.alibaba.csp.sentinel.config.SentinelConfig#getConfig(java.lang.String, boolean) public static String getConfig(String key, boolean envVariableKey) { AssertUtil.notNull(key, "key cannot be null"); if (envVariableKey) { // 是否这里调用错了??? // String value = System.getenv(key); // **TODO: 是否这里换成 ???** String...

com.alibaba.csp.sentinel.config.SentinelConfig#getConfig(java.lang.String, boolean) /** * Get config value of the specific key. * * @param key config key * @param envVariableKey Get the value of the environment variable with the given...

解决方案: 在 com.alibaba.csp.sentinel.config.SentinelConfig 中修改,如下代码: /** * Get config value of the specific key. * * @param key config key * @return the config value. */ public static String getConfig(String key)...

还有一个问题,是显示 Dubbo 服务对应的 main方法 的类名,而不是 application name ,解决方案如下: com.alibaba.csp.sentinel.config.SentinelConfig 类中,添加 和 修改代码如下: /** * spring.application.name * fix BUG: JDK 17、JDK 21+ ,Dubbo 3.x show main class name * add by...