首页 文章

Vaadin 8 Spring Boot QuickTickets Dashboard with Spring MVC

提问于
浏览
1

我'm trying to adapt Vaadin Spring Boot QuickTickets Dashboard example with my project needs. Everything is working fine except I'm无法访问另一个(不是Vaadin UI)网址 . 例如,我有Spring Boot Actuator endpoints - http://localhost:8080/actuator/health但是当我尝试访问它时,应用程序错误地将我重定向到http://localhost:8080/actuator/health#!dashboard . 与我的自定义登录页面(不是Vaadin UI)几乎相同的行为 - http://localhost:8080/login . 我也无法访问它 .

如何正确设置Vaadin以便能够访问Spring Boot Actuator endpoints 和我的自定义登录页面?

1 回答

  • 1

    您需要将servlet映射到不同的路径 . 我认为问题是Vaadin-Servlet被映射到/正在处理所有请求 .

    将以下内容添加到application.properties应该可以解决问题 .

    vaadin.servlet.urlMapping = /myapp/*
    

    当然,应用程序的URL会相应更改 .

相关问题