From 8dc50bc87e3d76f7b348ba0c3b4fe0316df2118e Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Mon, 13 May 2024 17:02:48 +0100 Subject: [PATCH] Add trailing slash to dashboard - Boot 3.x changed handling of trailing slash meaning it's now adviced to define both /dashboard and /dashboard/ in UiController --- .../cloud/dataflow/server/controller/UiController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java b/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java index 1f364f80ff..bf1cc53de1 100644 --- a/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java +++ b/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/UiController.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2017 the original author or authors. + * Copyright 2015-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ * @author Gunnar Hillert */ @Controller -@RequestMapping(UiController.WEB_UI_INDEX_PAGE_ROUTE) +@RequestMapping({ UiController.WEB_UI_INDEX_PAGE_ROUTE, UiController.WEB_UI_INDEX_PAGE_ROUTE + "/" }) public class UiController { public static final String WEB_UI_INDEX_PAGE_ROUTE = "/dashboard";