到目前为止,我已经为我的Spring引导应用程序编写了一堆端点,没有html。现在,我想提供HTML文件和js文件,这些文件包含了react代码。Not Found1.添加了一个扩展WebMvcConfigurerAdapter的web配置类@Configuration ModelAndView model = new ModelAndView("index");
当我试图从用create-react-app.创建的React应用程序中的公用文件夹中加载html文件时,我遇到了麻烦我是不是在webpack的某个地方漏掉了配置设置?我现在有这个文件夹结构:我想在我的React组件中的Iframe中显示test.html文件,如下所示:
import React from 'rea
我正在构建spring网站,其中包含了subroute下的单页面应用程序,我当前的url结构应该如下所示localhost/**=> spring thymeleaf/rest/websocket app for everything else
localhost/admin/static看起来是一项常