Git Product home page Git Product logo

wx-service's Introduction

前后端分离项目简单案例

技术构成:SpringBoot+React+React-Router+Antd+Redux(未连接数据库)

#部署

  • 安装eclipse+maven环境,idea也可以。
  • react项目打包:npm run build
  • 找到web项目的webapp目录

找到webapp目录

注意:WEB-INF目录和MP_verify_BMkQAHplMGROBlAn.txt文件不能删除。

把react项目打包好的build目录下的文件拷贝到web项目中的webapp目录(不要删除webapp目录下已经有的文件和目录):

#打包

  • 对web项目执行命令: maven install

执行maven install命令

image.png

打包的过程中:注意Console控制台 出现BUILD SUCCESS 提示语句之后,maven打包才是正确生成,如果出现错误,请自行百度错误提示。

找到target目录下,拷贝war文件:

image.png

最后一步就是把war文件发布到linux中的web容器中

wx-service's People

Contributors

arisono avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.