纯springboot 没配置nacos,dashboard 页面空白,能看到服务,见图片
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
dashboard 配置启动如下:java -Dserver.port=8718 -Dcsp.sentinel.dashboard.server=localhost:8718 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.4.jar
项目端口配置如下:
spring.cloud.sentinel.transport.port=8719
spring.cloud.sentinel.transport.dashboard=localhost:8718
spring.cloud.sentinel.enabled=true
spring.cloud.sentinel.eager=true
spring.cloud.sentinel.clientIp=localhost
项目代码未增加@sentinelRescoure 等代码,但是有类似于如下control
```java
@RestController
@RequestMapping("/reader/config")
public class TAdConfigController {
private Logger logger = LoggerFactory.getLogger(TAdConfigController.class.getName());
@RequestMapping(value = "/adconfig", method = RequestMethod.GET)
@ResponseBody
public R getAdconfig(@RequestParam String appid, @RequestParam(required = false) String platform) {
```
项目工程配置如下:
```xml
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.2.5.RELEASE
com.zhiliantong
readSever
1.1.0-SNAPSHOT
readSever
read server
1.8
true
com.alibaba.cloud
spring-cloud-starter-alibaba-sentinel
2.2.5.RELEASE
com.alibaba.csp
sentinel-transport-simple-http
1.8.4
com.alibaba.csp
sentinel-spring-webmvc-adapter
1.8.4
org.springframework.boot
spring-boot-starter-cache
org.springframework.boot
spring-boot-starter-data-redis
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-configuration-processor
true
com.github.qcloudsms
qcloudsms
1.0.6
org.projectlombok
lombok
true
org.springframework.boot
spring-boot-starter-test
test
com.google.code.gson
gson
2.8.5
com.squareup.okhttp3
okhttp
3.14.0
com.baomidou
mybatis-plus-boot-starter
3.1.1
mysql
mysql-connector-java
8.0.15
org.freemarker
freemarker
2.3.28
org.mybatis
mybatis-typehandlers-jsr310
1.0.1
com.auth0
java-jwt
3.4.0
com.baomidou
mybatis-plus-generator
3.1.2
com.alibaba
druid
1.1.18
com.github.binarywang
weixin-java-open
3.4.0
com.github.binarywang
weixin-java-mp
3.4.0
com.github.binarywang
weixin-java-pay
3.4.0
com.alibaba
fastjson
1.2.58
org.springframework.boot
spring-boot-devtools
2.0.4.RELEASE
org.springframework.boot
spring-boot-maven-plugin
```

Contributor guide
Research direction
Start by reproducing the reported setup with sentinel-dashboard-1.8.4.jar, the listed Spring Boot properties, and the project pom.xml dependencies. Inspect the dashboard behavior for the reported controller and compare the visible service data with the supplied screenshot. Done means the dashboard renders the service information instead of a blank page, with the cause documented or reproduced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100