Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentinel dashboard cannot display properly when the spring boot application has a context path #1474

Closed
seedscoder opened this issue May 10, 2020 · 2 comments
Labels
integration/spring-cloud Issue related to Spring Cloud Alibaba integration kind/question Category issues related to questions or problems

Comments

@seedscoder
Copy link

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

Describe what you expected to happen

  • Sentinel dashboard cannot display properly when the spring boot application has a context path

How to reproduce it (as minimally and precisely as possible)

  • application.yml
server:
  port: 9000
  servlet:
    context-path: /sentinel-demo

spring:
  application:
    name: sentinel-demo
  cloud:
    sentinel:
      transport:
        dashboard: localhost:8080
  • result
    context path

  • When I delete the context path
    xxx

Tell us your environment

  • Spring Cloud Alibaba 2.2.0.RELEASE

Anything else we need to know?

  • What do I need to do to display correctly
@cdfive
Copy link
Collaborator

cdfive commented May 10, 2020

Try add filter.url-patterns: /** in application.yml:

spring:
  application:
    name: sentinel-demo
  cloud:
    sentinel:
      transport:
        dashboard: localhost:8080
      filter:
        url-patterns: /**

The Spring Cloud Alibaba 2.2.1.RELEASE has improved this configuration by default.

Refer to #1380#1343

@cdfive cdfive added integration/spring-cloud Issue related to Spring Cloud Alibaba integration kind/question Category issues related to questions or problems labels May 10, 2020
@seedscoder
Copy link
Author

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration/spring-cloud Issue related to Spring Cloud Alibaba integration kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

2 participants