You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Cloud DataFlow Server v2.10.3仪表盘404无法访问求助

Spring Cloud DataFlow Server v2.10.3 仪表盘404问题排查与解决

1. 修复自定义安全配置

你的CustomSecurityConfig继承WebSecurityConfigurerAdapter但未配置任何规则,会覆盖DataFlow Server默认安全配置,导致UI静态资源和接口被拦截。修改配置类,允许UI相关路径的匿名访问:

@Configuration
@EnableWebSecurity
public class CustomSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests()
                .antMatchers("/ui/**", "/dashboard/**", "/static/**", "/actuator/**").permitAll()
                .anyRequest().authenticated()
                .and()
                .csrf().disable();
    }
}

2. 确认引入UI依赖

需确保项目依赖中包含DataFlow Server UI组件,否则UI静态资源不会被打包进应用:

Maven 配置:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-dataflow-server-ui</artifactId>
    <version>2.10.3</version>
</dependency>

Gradle 配置:

implementation 'org.springframework.cloud:spring-cloud-dataflow-server-ui:2.10.3'

3. 使用正确的访问路径

Spring Cloud DataFlow v2.10.3 的UI默认访问路径为:
http://localhost:9393/ui
而非你尝试的/dashboard/index.html(原文存在拼写错误dahsboard)。

4. 额外配置检查

当前spring.cloud.dataflow.features中的配置(streams-enabled: false)不影响UI显示,只要tasks-enabled和schedules-enabled保持true即可。

内容的提问来源于stack exchange,提问作者Fahd

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 06:40:56