使用 .gitmodules 文件, 以将 React 项目作为 Spring Boot 项目的子模块进行管理
通过在Spring Boot项目中使用maven插件,在这个Youtube视频中成功在Spring Boot项目中运行create-react-app,并且可以在一个项目中同时管理Spring Boot和React。然而,当我完成这一步骤后,将整个Spring Boot项目推送到GitHub后,由于create-react-app创建的目录变成了另一个项目,所以无法在GitHub上查看Spring仓库的内容。因此,通过将React项目作为Spring项目的子模块来识别,当在GitHub上查看Spring项目时,当遇到React项目时,可以跳转到React项目。


通过这个,Spring Boot和React的环境构建终于完成了。