1 Star 0 Fork 1

LePTon / springboot-vue

forked from DeleMing / springboot-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

springboot-vue

介绍

这是一个前后端分离的Demo

软件架构

  1. springboot
  2. swagger
  3. mybatis
  4. vue
  5. vue-router
  6. nginx

启动教程

数据库导入

  1. 打开navicat,创建数据库为 springbootdemo数据库
  2. 运行springbootdemo.sql即可

后端启动

  1. idea以maven工程导入springboot-demo目录
  2. idea运行DemoApplication.java

前端启动

  1. 请确保已安装node.js8.*以上,并安装yarn
  2. yarn install (安装依赖)
  3. yarn run bulid (生成dist文件夹)

nginx配置

  1. windows环境下打开nginx配置文件nginx.conf(其他环境配置文件路径有所差异)
  2. 修改如下配置:

    nginx.conf

     listen       8888;
     server_name  0.0.0.0;
     # 界面所在目录
     location / {
     	root D:\*\*\dist; # 这里配置前端生成dist文件夹的路径
     }
    
     # 服务地址
      location /api/{   # 这里的api是前端代码(axios.js)里配置的
         proxy_pass http://127.0.0.1:8090/; # 这里配置后端服务地址
     }

空文件

简介

这是一个前后端分离的Demo 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/LePTon/springboot-vue.git
git@gitee.com:LePTon/springboot-vue.git
LePTon
springboot-vue
springboot-vue
master

搜索帮助