React与Springboot整合问题整理。

1、从https://github.com/spring-guides/tut-react-and-spring-data-rest/tree/master/basic下载源码

2、需要了解的知识点:springboot、react、babel、webpack、npm、maven

3、遇到的问题

(1)、数据存到了哪

    查看maven配置文件pom.xml,里面有h2database的依赖。

React与Springboot整合问题整理。_第1张图片

    在配置文件中添加

React与Springboot整合问题整理。_第2张图片

    启动项目查看后台debug信息

React与Springboot整合问题整理。_第3张图片

    访问ttp://localhost:8080/h2-console

    登陆用户名sa密码空

React与Springboot整合问题整理。_第4张图片

React与Springboot整合问题整理。_第5张图片

(2)、如何打包bundle.js

maven,在项目路径下运行 mvn install



你可能感兴趣的:(问题整理)