vue 路由history模式下 后端配置问题

vue+springboot项目路由去# 后端怎么配都不生效,能不用nginx吗?我nginx也按照官网配了不行
前端router的index.js

const createRouter = () => new Router({
  mode: 'history', // require service support
  base:'/eds',
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRoutes
})

后端配置,写在启动类

//  解决vue路由history模式问题
    @Bean
    public WebServerFactoryCustomizer<ConfigurableWebServerFactory> containerCustomizer() {

        return factory -> {
            ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND, "/index.html");
            factory.addErrorPages(error404Page);
        };
    }
}

刷新一直404,还需要配什么吗?各位帮忙看下,先谢谢各位了~

https://blog.csdn.net/wz_coming/article/details/118099881