T[] of(T... values) {
- return values;
- }
-
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof ApplicationReadyEvent) {
@@ -86,12 +96,30 @@ public class AwaitingNonWebApplicationListener implements SmartApplicationListen
final SpringApplication springApplication = event.getSpringApplication();
- if (!WebApplicationType.NONE.equals(springApplication.getWebApplicationType())) {
+ if (isWebApplication(event.getApplicationContext(), springApplication.getClassLoader())) {
return;
}
await();
+ }
+
+ private static boolean isWebApplication(ApplicationContext applicationContext, ClassLoader classLoader) {
+ boolean webApplication = false;
+ for (String contextClass : WEB_APPLICATION_CONTEXT_CLASSES) {
+ if (isAssignable(contextClass, applicationContext.getClass(), classLoader)) {
+ webApplication = true;
+ break;
+ }
+ }
+ return webApplication;
+ }
+ private static boolean isAssignable(String target, Class> type, ClassLoader classLoader) {
+ try {
+ return ClassUtils.resolveClassName(target, classLoader).isAssignableFrom(type);
+ } catch (Throwable ex) {
+ return false;
+ }
}
protected void onContextClosedEvent(ContextClosedEvent event) {
@@ -146,8 +174,4 @@ public class AwaitingNonWebApplicationListener implements SmartApplicationListen
lock.unlock();
}
}
-
- static AtomicBoolean getAwaited() {
- return awaited;
- }
}
diff --git a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/OverrideDubboConfigApplicationListener.java b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/OverrideDubboConfigApplicationListener.java
index 9f25d255a3dd8e01713111a1726ef1fc6584c7fa..35fd3fec332380f48e2e4c392bb49d99f47ef31d 100644
--- a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/OverrideDubboConfigApplicationListener.java
+++ b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/OverrideDubboConfigApplicationListener.java
@@ -28,7 +28,9 @@ import org.springframework.core.env.Environment;
import java.util.SortedMap;
-import static org.apache.dubbo.spring.starter.util.DubboUtils.*;
+import static org.apache.dubbo.spring.starter.util.DubboUtils.DEFAULT_OVERRIDE_CONFIG_PROPERTY_VALUE;
+import static org.apache.dubbo.spring.starter.util.DubboUtils.OVERRIDE_CONFIG_FULL_PROPERTY_NAME;
+import static org.apache.dubbo.spring.starter.util.DubboUtils.filterDubboProperties;
/**
* {@link ApplicationListener} to override the dubbo properties from {@link Environment}into
@@ -37,7 +39,7 @@ import static org.apache.dubbo.spring.starter.util.DubboUtils.*;
*
*
* @see ConfigUtils
- * @since 1.0.0
+ * @since 2.7.0
*/
@Order // LOWEST_PRECEDENCE Make sure last execution
public class OverrideDubboConfigApplicationListener implements ApplicationListener {
@@ -53,7 +55,7 @@ public class OverrideDubboConfigApplicationListener implements ApplicationListen
ConfigurableEnvironment environment = event.getEnvironment();
- boolean override = environment.getProperty(OVERRIDE_CONFIG_PROPERTY_NAME, boolean.class,
+ boolean override = environment.getProperty(OVERRIDE_CONFIG_FULL_PROPERTY_NAME, boolean.class,
DEFAULT_OVERRIDE_CONFIG_PROPERTY_VALUE);
if (override) {
@@ -63,19 +65,12 @@ public class OverrideDubboConfigApplicationListener implements ApplicationListen
ConfigUtils.getProperties().putAll(dubboProperties);
if (logger.isInfoEnabled()) {
-
logger.info("Dubbo Config was overridden by externalized configuration {}", dubboProperties);
-
}
-
} else {
-
if (logger.isInfoEnabled()) {
-
- logger.info("Disable override Dubbo Config caused by property {} = {}", OVERRIDE_CONFIG_PROPERTY_NAME, override);
-
+ logger.info("Disable override Dubbo Config caused by property {} = {}", OVERRIDE_CONFIG_FULL_PROPERTY_NAME, override);
}
-
}
}
diff --git a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/WelcomeLogoApplicationListener.java b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/WelcomeLogoApplicationListener.java
index af70328f4cadb0038d67ab2d0dca7f563468e3eb..a17ced233a1456e516e3591058dcfb6410a7394f 100644
--- a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/WelcomeLogoApplicationListener.java
+++ b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/context/event/WelcomeLogoApplicationListener.java
@@ -17,11 +17,12 @@
package org.apache.dubbo.spring.starter.context.event;
import org.apache.dubbo.common.Version;
+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
-import org.springframework.boot.context.logging.LoggingApplicationListener;
import org.springframework.context.ApplicationListener;
+import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import java.util.concurrent.atomic.AtomicBoolean;
@@ -32,9 +33,9 @@ import static org.apache.dubbo.spring.starter.util.DubboUtils.*;
* Dubbo Welcome Logo {@link ApplicationListener}
*
* @see ApplicationListener
- * @since 1.0.0
+ * @since 2.7.0
*/
-@Order(LoggingApplicationListener.DEFAULT_ORDER + 1)
+@Order(Ordered.HIGHEST_PRECEDENCE + 20 + 1) // After LoggingApplicationListener#DEFAULT_ORDER
public class WelcomeLogoApplicationListener implements ApplicationListener {
private static AtomicBoolean processed = new AtomicBoolean(false);
@@ -72,7 +73,7 @@ public class WelcomeLogoApplicationListener implements ApplicationListenertrue as default.
+ *
+ * @param defaultProperties the default {@link Properties properties}
+ * @see #ALLOW_BEAN_DEFINITION_OVERRIDING_PROPERTY
+ * @since 2.7.1
+ */
+ private void setAllowBeanDefinitionOverriding(Map defaultProperties) {
+ defaultProperties.put(ALLOW_BEAN_DEFINITION_OVERRIDING_PROPERTY, Boolean.TRUE.toString());
+ }
+
/**
* Copy from BusEnvironmentPostProcessor#addOrReplace(MutablePropertySources, Map)
*
diff --git a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/DubboUtils.java b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/DubboUtils.java
index 178e54aaac0bf4b4936e93deb16bf7635d24e6b6..0c7b81e274a4f3361dd53eee75651db9b7df7bb3 100644
--- a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/DubboUtils.java
+++ b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/DubboUtils.java
@@ -16,7 +16,15 @@
*/
package org.apache.dubbo.spring.starter.util;
+import org.apache.dubbo.config.ApplicationConfig;
+import org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationBeanPostProcessor;
+import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfig;
+import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfigBinding;
+import org.apache.dubbo.config.spring.context.properties.DubboConfigBinder;
+
+import org.springframework.boot.context.ContextIdApplicationContextInitializer;
import org.springframework.core.env.ConfigurableEnvironment;
+import org.springframework.core.env.PropertyResolver;
import java.util.Collections;
import java.util.Map;
@@ -26,7 +34,7 @@ import java.util.TreeMap;
/**
* The utilities class for Dubbo
*
- * @since 1.0.0
+ * @since 2.7.0
*/
public abstract class DubboUtils {
@@ -49,38 +57,38 @@ public abstract class DubboUtils {
/**
* The prefix of property name for Dubbo scan
*/
- public static final String DUBBO_SCAN_PREFIX = DUBBO_PREFIX + PROPERTY_NAME_SEPARATOR + "scan";
+ public static final String DUBBO_SCAN_PREFIX = DUBBO_PREFIX + PROPERTY_NAME_SEPARATOR + "scan" + PROPERTY_NAME_SEPARATOR;
/**
- * The prefix of property name for Dubbo Config.ØØ
+ * The prefix of property name for Dubbo Config
*/
- public static final String DUBBO_CONFIG_PREFIX = DUBBO_PREFIX + PROPERTY_NAME_SEPARATOR + "config";
+ public static final String DUBBO_CONFIG_PREFIX = DUBBO_PREFIX + PROPERTY_NAME_SEPARATOR + "config" + PROPERTY_NAME_SEPARATOR;
/**
* The property name of base packages to scan
*
* The default value is empty set.
*/
- public static final String BASE_PACKAGES_PROPERTY_NAME = DUBBO_SCAN_PREFIX + PROPERTY_NAME_SEPARATOR + "base-packages";
+ public static final String BASE_PACKAGES_PROPERTY_NAME = "base-packages";
/**
* The property name of multiple properties binding from externalized configuration
*
* The default value is {@link #DEFAULT_MULTIPLE_CONFIG_PROPERTY_VALUE}
*/
- public static final String MULTIPLE_CONFIG_PROPERTY_NAME = DUBBO_CONFIG_PREFIX + PROPERTY_NAME_SEPARATOR + "multiple";
+ public static final String MULTIPLE_CONFIG_PROPERTY_NAME = "multiple";
/**
* The default value of multiple properties binding from externalized configuration
*/
- public static final boolean DEFAULT_MULTIPLE_CONFIG_PROPERTY_VALUE = false;
+ public static final boolean DEFAULT_MULTIPLE_CONFIG_PROPERTY_VALUE = true;
/**
* The property name of override Dubbo config
*
* The default value is {@link #DEFAULT_OVERRIDE_CONFIG_PROPERTY_VALUE}
*/
- public static final String OVERRIDE_CONFIG_PROPERTY_NAME = DUBBO_CONFIG_PREFIX + PROPERTY_NAME_SEPARATOR + "override";
+ public static final String OVERRIDE_CONFIG_FULL_PROPERTY_NAME = DUBBO_CONFIG_PREFIX + "override";
/**
* The default property value of override Dubbo config
@@ -91,28 +99,79 @@ public abstract class DubboUtils {
/**
* The github URL of Dubbo Spring Boot
*/
- public static final String DUBBO_SPRING_BOOT_GITHUB_URL = "https://github.com/apache/incubator-dubbo-spring-boot-project";
+ public static final String DUBBO_SPRING_BOOT_GITHUB_URL = "https://github.com/apache/dubbo-spring-boot-project";
/**
* The git URL of Dubbo Spring Boot
*/
- public static final String DUBBO_SPRING_BOOT_GIT_URL = "https://github.com/apache/incubator-dubbo-spring-boot-project.git";
+ public static final String DUBBO_SPRING_BOOT_GIT_URL = "https://github.com/apache/dubbo-spring-boot-project.git";
/**
* The issues of Dubbo Spring Boot
*/
- public static final String DUBBO_SPRING_BOOT_ISSUES_URL = "https://github.com/apache/incubator-dubbo-spring-boot-project/issues";
+ public static final String DUBBO_SPRING_BOOT_ISSUES_URL = "https://github.com/apache/dubbo-spring-boot-project/issues";
/**
* The github URL of Dubbo
*/
- public static final String DUBBO_GITHUB_URL = "https://github.com/apache/incubator-dubbo";
+ public static final String DUBBO_GITHUB_URL = "https://github.com/apache/dubbo";
/**
* The google group URL of Dubbo
*/
public static final String DUBBO_MAILING_LIST = "dev@dubbo.apache.org";
+ /**
+ * The bean name of Relaxed-binding {@link DubboConfigBinder}
+ */
+ public static final String RELAXED_DUBBO_CONFIG_BINDER_BEAN_NAME = "relaxedDubboConfigBinder";
+
+ /**
+ * The bean name of {@link PropertyResolver} for {@link ServiceAnnotationBeanPostProcessor}'s base-packages
+ */
+ public static final String BASE_PACKAGES_PROPERTY_RESOLVER_BEAN_NAME = "dubboScanBasePackagesPropertyResolver";
+
+ /**
+ * The property name of Spring Application
+ *
+ * @see ContextIdApplicationContextInitializer
+ * @since 2.7.1
+ */
+ public static final String SPRING_APPLICATION_NAME_PROPERTY = "spring.application.name";
+
+ /**
+ * The property id of {@link ApplicationConfig} Bean
+ *
+ * @see EnableDubboConfig
+ * @see EnableDubboConfigBinding
+ * @since 2.7.1
+ */
+ public static final String DUBBO_APPLICATION_ID_PROPERTY = "dubbo.application.id";
+
+ /**
+ * The property name of {@link ApplicationConfig}
+ *
+ * @see EnableDubboConfig
+ * @see EnableDubboConfigBinding
+ * @since 2.7.1
+ */
+ public static final String DUBBO_APPLICATION_NAME_PROPERTY = "dubbo.application.name";
+
+ /**
+ * The property name of {@link ApplicationConfig#getQosEnable() application's QOS enable}
+ *
+ * @since 2.7.1
+ */
+ public static final String DUBBO_APPLICATION_QOS_ENABLE_PROPERTY = "dubbo.application.qos-enable";
+
+ /**
+ * The property name of {@link EnableDubboConfig#multiple() @EnableDubboConfig.multiple()}
+ *
+ * @since 2.7.1
+ */
+ public static final String DUBBO_CONFIG_MULTIPLE_PROPERTY = "dubbo.config.multiple";
+
+
/**
* Filters Dubbo Properties from {@link ConfigurableEnvironment}
*
diff --git a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/EnvironmentUtils.java b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/EnvironmentUtils.java
index 30d6964c77358f932a02129fff2a19710b23397f..f722624fa49f8d6d62aac3a7c893eb5fd089a09a 100644
--- a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/EnvironmentUtils.java
+++ b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/java/org/apache/dubbo/spring/starter/util/EnvironmentUtils.java
@@ -27,7 +27,7 @@ import java.util.Map;
* The utilities class for {@link Environment}
*
* @see Environment
- * @since 1.0.0
+ * @since 2.7.0
*/
public abstract class EnvironmentUtils {
diff --git a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/resources/META-INF/spring-configuration-metadata.json b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/resources/META-INF/spring-configuration-metadata.json
deleted file mode 100644
index 2ccf184783cc40c692cf49d2263c0a9ff8376f8a..0000000000000000000000000000000000000000
--- a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/resources/META-INF/spring-configuration-metadata.json
+++ /dev/null
@@ -1,1098 +0,0 @@
-{
- "hints": [],
- "groups": [],
- "properties": [
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.architecture",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.compiler",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.default",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.dump-directory",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.environment",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.id",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.logger",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.monitor",
- "type": "org.apache.dubbo.config.MonitorConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.name",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.organization",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.owner",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.parameters",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.qos-accept-foreign-ip",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.qos-enable",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.qos-port",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.registries",
- "type": "java.util.List"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.registry",
- "type": "org.apache.dubbo.config.RegistryConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ApplicationConfig",
- "name": "dubbo.application.version",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.MultipleDubboConfigBindingProperties",
- "name": "dubbo.applications",
- "description": "Multiple {@link ApplicationConfig} property",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.DubboConfigProperties",
- "name": "dubbo.config.multiple",
- "description": "Indicates multiple properties binding from externalized configuration or not.",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.DubboConfigProperties",
- "name": "dubbo.config.override",
- "description": "Indicates override {@link ConfigUtils#getProperties() Dubbo config properties} from externalized configuration\n or not.",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.actives",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.application",
- "type": "org.apache.dubbo.config.ApplicationConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.async",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.cache",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.callbacks",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.check",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.client",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.cluster",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.connections",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.default",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.filter",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.generic",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.group",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.id",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.init",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "deprecated": true,
- "name": "dubbo.consumer.injvm",
- "type": "java.lang.Boolean",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.layer",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.lazy",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.listener",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.loadbalance",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "deprecated": true,
- "name": "dubbo.consumer.local",
- "type": "java.lang.String",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.merger",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.mock",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.module",
- "type": "org.apache.dubbo.config.ModuleConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.monitor",
- "type": "org.apache.dubbo.config.MonitorConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.onconnect",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.ondisconnect",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.owner",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.parameters",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.proxy",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.reconnect",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.registries",
- "type": "java.util.List"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.registry",
- "type": "org.apache.dubbo.config.RegistryConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.retries",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.scope",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.sent",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.sticky",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.stub",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.timeout",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.validation",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ConsumerConfig",
- "name": "dubbo.consumer.version",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.MultipleDubboConfigBindingProperties",
- "name": "dubbo.consumers",
- "description": "Multiple {@link ConsumerConfig} property",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.default",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.id",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.monitor",
- "type": "org.apache.dubbo.config.MonitorConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.name",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.organization",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.owner",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.registries",
- "type": "java.util.List"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.registry",
- "type": "org.apache.dubbo.config.RegistryConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ModuleConfig",
- "name": "dubbo.module.version",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.MultipleDubboConfigBindingProperties",
- "name": "dubbo.modules",
- "description": "Multiple {@link ModuleConfig} property",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.address",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.default",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.group",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.id",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.parameters",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.password",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.protocol",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.username",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.MonitorConfig",
- "name": "dubbo.monitor.version",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.MultipleDubboConfigBindingProperties",
- "name": "dubbo.monitors",
- "description": "Multiple {@link MonitorConfig} property",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.accepts",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.accesslog",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.buffer",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.charset",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.client",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.codec",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.contextpath",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.default",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.dispatcher",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "deprecated": true,
- "name": "dubbo.protocol.dispather",
- "type": "java.lang.String",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.exchanger",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.heartbeat",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.host",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.id",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.iothreads",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.name",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.networker",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.parameters",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "deprecated": true,
- "name": "dubbo.protocol.path",
- "type": "java.lang.String",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.payload",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.port",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.prompt",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.queues",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.register",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.serialization",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.server",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.status",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.telnet",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.threadpool",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.threads",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProtocolConfig",
- "name": "dubbo.protocol.transporter",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.MultipleDubboConfigBindingProperties",
- "name": "dubbo.protocols",
- "description": "Multiple {@link ProtocolConfig} property",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.accepts",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.accesslog",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.actives",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.application",
- "type": "org.apache.dubbo.config.ApplicationConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.async",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.buffer",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.cache",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.callbacks",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.charset",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.client",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.cluster",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.codec",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.connections",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.contextpath",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "deprecated": true,
- "name": "dubbo.provider.default",
- "type": "java.lang.Boolean",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.delay",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.deprecated",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.dispatcher",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "deprecated": true,
- "name": "dubbo.provider.dispather",
- "type": "java.lang.String",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.document",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.dynamic",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.exchanger",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.executes",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.export",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.filter",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.group",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.host",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.id",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.iothreads",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.layer",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.listener",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.loadbalance",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "deprecated": true,
- "name": "dubbo.provider.local",
- "type": "java.lang.String",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.merger",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.mock",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.module",
- "type": "org.apache.dubbo.config.ModuleConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.monitor",
- "type": "org.apache.dubbo.config.MonitorConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.networker",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.onconnect",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.ondisconnect",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.owner",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.parameters",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "deprecated": true,
- "name": "dubbo.provider.path",
- "type": "java.lang.String",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.payload",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "deprecated": true,
- "name": "dubbo.provider.port",
- "type": "java.lang.Integer",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.prompt",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.protocol",
- "type": "org.apache.dubbo.config.ProtocolConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.protocols",
- "type": "java.util.List"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.proxy",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.queues",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.register",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.registries",
- "type": "java.util.List"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.registry",
- "type": "org.apache.dubbo.config.RegistryConfig"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.retries",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.scope",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.sent",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.serialization",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.server",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.status",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.stub",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.telnet",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.threadpool",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.threads",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.timeout",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.token",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.transporter",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.validation",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.version",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.wait",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.warmup",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.ProviderConfig",
- "name": "dubbo.provider.weight",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.MultipleDubboConfigBindingProperties",
- "name": "dubbo.providers",
- "description": "Multiple {@link ProviderConfig} property",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.MultipleDubboConfigBindingProperties",
- "name": "dubbo.registries",
- "description": "Multiple {@link RegistryConfig} property",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.address",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.check",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.client",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.cluster",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.default",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.dynamic",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.file",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.group",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.id",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.parameters",
- "type": "java.util.Map"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.password",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.port",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.protocol",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.register",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.server",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.session",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.subscribe",
- "type": "java.lang.Boolean"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.timeout",
- "type": "java.lang.Integer"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "deprecated": true,
- "name": "dubbo.registry.transport",
- "type": "java.lang.String",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.transporter",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.username",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "name": "dubbo.registry.version",
- "type": "java.lang.String"
- },
- {
- "sourceType": "org.apache.dubbo.config.RegistryConfig",
- "deprecated": true,
- "name": "dubbo.registry.wait",
- "type": "java.lang.Integer",
- "deprecation": {}
- },
- {
- "sourceType": "org.apache.dubbo.spring.starter.autoconfigure.DubboScanProperties",
- "name": "dubbo.scan.base-packages",
- "description": "The base-packages to scan , the multiple-value is delimited by comma\n\n @see EnableDubbo#scanBasePackages()",
- "type": "java.util.Set"
- }
- ]
-}
\ No newline at end of file
diff --git a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/resources/META-INF/spring.factories b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/resources/META-INF/spring.factories
index 6051d370ae96b092369819f86f97ea9eb06a2bf8..da4e2289566a8e87da9482590d43a529ad88bb31 100644
--- a/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/resources/META-INF/spring.factories
+++ b/whatsmars-dubbo/dubbo-spring-boot-starter/src/main/resources/META-INF/spring.factories
@@ -1,4 +1,5 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.dubbo.spring.starter.autoconfigure.DubboRelaxedBindingAutoConfiguration,\
org.apache.dubbo.spring.starter.autoconfigure.DubboAutoConfiguration
@@ -8,4 +9,7 @@ org.apache.dubbo.spring.starter.context.event.WelcomeLogoApplicationListener,\
org.apache.dubbo.spring.starter.context.event.AwaitingNonWebApplicationListener
org.springframework.boot.env.EnvironmentPostProcessor=\
-org.apache.dubbo.spring.starter.env.DubboDefaultPropertiesEnvironmentPostProcessor
\ No newline at end of file
+org.apache.dubbo.spring.starter.env.DubboDefaultPropertiesEnvironmentPostProcessor
+
+org.springframework.context.ApplicationContextInitializer=\
+org.apache.dubbo.spring.starter.context.DubboApplicationContextInitializer
\ No newline at end of file
diff --git a/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/ConsumerApplication.java b/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/ConsumerApplication.java
index baade11ea381ca53ca9f2c2e0907e04f1dd87516..8c2b3ebaf5b24d2d589848c6bfff88a169044c7b 100644
--- a/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/ConsumerApplication.java
+++ b/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/ConsumerApplication.java
@@ -1,9 +1,7 @@
package org.hongxi.whatsmars.dubbo.demo.consumer;
-import org.hongxi.whatsmars.dubbo.demo.consumer.rpc.DemoRpc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.context.ConfigurableApplicationContext;
/**
* Created by javahongxi on 2017/12/4.
@@ -11,9 +9,6 @@ import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication
public class ConsumerApplication {
public static void main(String[] args) {
- ConfigurableApplicationContext context = SpringApplication.run(ConsumerApplication.class, args);
-// DemoRpc demoRpc = context.getBean(DemoRpc.class);
-// System.out.println(demoRpc.sayHello("Lily"));
-// System.out.println(demoRpc.sayHello2("Lily"));
+ SpringApplication.run(ConsumerApplication.class, args);
}
}
diff --git a/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/rpc/DemoRpc.java b/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/rpc/DemoRpc.java
index 8e2af39576a17a033da1921de5aded55ed95523f..41e7cb21dd3904048b61461fa8f5255ee9cc477b 100644
--- a/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/rpc/DemoRpc.java
+++ b/whatsmars-dubbo/whatsmars-dubbo-consumer-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/rpc/DemoRpc.java
@@ -15,10 +15,10 @@ public class DemoRpc {
/**
* 当不指定registry时,Reference会从所有含有该service的registry里选择一个registry
*/
- @Reference(registry = "defaultRegistry", check = false)
+ @Reference(registry = "defaultRegistry")
private DemoService demoService;
- @Reference(registry = "otherRegistry", check = false)
+ @Reference(registry = "otherRegistry")
private OtherService otherService;
public String sayHello(String name) {
diff --git a/whatsmars-dubbo/whatsmars-dubbo-consumer/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/AsyncConsumer2.java b/whatsmars-dubbo/whatsmars-dubbo-consumer/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/AsyncConsumer2.java
index 7bf07ec13755d7e618ba46c1019fe518e277400b..e74d21b1bcd4581905675d1c731c7fafc4ec4943 100644
--- a/whatsmars-dubbo/whatsmars-dubbo-consumer/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/AsyncConsumer2.java
+++ b/whatsmars-dubbo/whatsmars-dubbo-consumer/src/main/java/org/hongxi/whatsmars/dubbo/demo/consumer/AsyncConsumer2.java
@@ -22,19 +22,15 @@ public class AsyncConsumer2 {
final DemoService demoService = (DemoService) context.getBean("demoService");
- Future f = RpcContext.getContext().asyncCall(new Callable() {
- public String call() throws Exception {
- return demoService.sayHello("async call request");
- }
+ Future f = RpcContext.getContext().asyncCall(() -> {
+ return demoService.sayHello("async call request");
});
System.out.println("async call ret :" + f.get());
- RpcContext.getContext().asyncCall(new Runnable() {
- public void run() {
- demoService.sayHello("oneway call request1");
- demoService.sayHello("oneway call request2");
- }
+ RpcContext.getContext().asyncCall(() -> {
+ demoService.sayHello("oneway call request1");
+ demoService.sayHello("oneway call request2");
});
System.in.read();
diff --git a/whatsmars-dubbo/whatsmars-dubbo-provider-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/provider/ProviderApplication.java b/whatsmars-dubbo/whatsmars-dubbo-provider-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/provider/ProviderApplication.java
index 02a6bfab63e39d1e49e68a05a93ee5715c599634..1ae92b43509c9ddf73af60b28bb0d96591f0826b 100644
--- a/whatsmars-dubbo/whatsmars-dubbo-provider-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/provider/ProviderApplication.java
+++ b/whatsmars-dubbo/whatsmars-dubbo-provider-boot/src/main/java/org/hongxi/whatsmars/dubbo/demo/provider/ProviderApplication.java
@@ -8,7 +8,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
*/
@SpringBootApplication
public class ProviderApplication {
- public static void main(String[] args) throws Exception {
+ public static void main(String[] args) {
SpringApplication.run(ProviderApplication.class, args);
}
}