alphatan opened a new issue #100: dubbo status is UNKOWN URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/100 # Description After checking the dubbo service working correctly, then added the dependency of `spring-boot-actuator` to enable actuator and checked `http://localhost:9091/health`, it shows the status of dubbo is **UNKOWN**.  Is it normal? a bug? or the configuration is incorrect ? Thanks # Configurations ## pom.xml ```xml <!-- spring boot starter --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <!-- mvc --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- actuator --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-actuator</artifactId> </dependency> <!-- lombok --> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.at.spring</groupId> <artifactId>dubbo-spring-boot-demo-api</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> <!-- dubbo-spring-boot-starter 0.1.x => spring-boot 1.x 0.2.x => spring-boot 2.x --> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>0.1.0</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> </exclusion> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.101tec</groupId> <artifactId>zkclient</artifactId> <version>0.10</version> </dependency> ``` ## application.properties ```properties # Spring boot application spring.application.name = dubbo-provider-demo server.port = 9090 management.port = 9091 # Base packages to scan Dubbo Components (e.g., @Service, @Reference) dubbo.scan.basePackages = com.at.spring.service.impl # Dubbo Config properties ## ApplicationConfig Bean dubbo.application.id = dubbo-spring-boot-demo-provider dubbo.application.name = dubbo-spring-boot-demo-provider ## ProtocolConfig Bean dubbo.protocol.id = dubbo dubbo.protocol.name = dubbo dubbo.protocol.port = 12345 ## RegistryConfig Bean dubbo.registry.id = zookeeper dubbo.registry.address = zookeeper://127.0.0.1:2181 ### actuator ## management.health.dubbo.status.defaults is a property name for setting names ## of StatusCheckers , its value is allowed to multiple-value #management.health.dubbo.status.defaults = memory,load management.health.dubbo.status.defaults = registry,memory,load ## management.health.dubbo.status.extras is used to override the ## management.health.dubbo.status.defaults, the multiple-values is delimited by ## comma #management.health.dubbo.status.extras = load,threadpool ## Dubbo Spring Boot providers actuator endpoint dubbo , however it is ## disable. If you'd like to enable it , please add following property into ## externalized configuration ## no such property in 0.1.0 #management.health.dubbo.enabled = true ## dubbo endpoint #endpoints.dubbo.enabled = false #endpoints.dubbo.sensitive = true ## Spring Security #management.security.enabled = true endpoints.dubbo.sensitive = false management.security.enabled = false ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
