diff --git a/.gitignore b/.gitignore index 36864faa4f44ec205d18613d7461ba3ae7531496..fb8a74cd7ad1648cdae48df0b3379cd020a97351 100644 --- a/.gitignore +++ b/.gitignore @@ -23,7 +23,6 @@ hs_err_pid* .DS_Store -*/node_modules # local env files diff --git a/vue2-boot/.gitignore b/vue2-boot/.gitignore index 36864faa4f44ec205d18613d7461ba3ae7531496..d12539802030cbb3dfe8b08729722ea137e06ec0 100644 --- a/vue2-boot/.gitignore +++ b/vue2-boot/.gitignore @@ -18,13 +18,12 @@ *.zip *.tar.gz *.rar +/target # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* .DS_Store -*/node_modules - # local env files .env.local diff --git a/vue2-boot/README.md b/vue2-boot/README.md new file mode 100644 index 0000000000000000000000000000000000000000..27c87a40debc0cd495ff0c119b5ea1363986e347 --- /dev/null +++ b/vue2-boot/README.md @@ -0,0 +1,16 @@ +## vue2-boot + +#### 使用 + +- 进入到 resources 下的 vueboot 文件夹 +- 执行 npm install 编译 +- 执行 npm run build 将打包成 dist 文件 +- 执行 VueBootApplication main 方法,启动项目访问 http://localhost:9091/index.html 即可 + +#### 开发 + +- 进入到 resources 下的 vueboot 文件夹 +- 执行 npm install 编译 +- 执行 npm run serve 启动前端项目 +- 访问 http://localhost:8081 +- 启动后端项目 执行 VueBootApplication main 方法 即可 \ No newline at end of file diff --git a/vue2-boot/src/main/resources/application.yml b/vue2-boot/src/main/resources/application.yml index e38cdc256b78816382f472340097eac52a77ead1..6ace0e536e2a55289b9dee744e86a9ef35d6508c 100644 --- a/vue2-boot/src/main/resources/application.yml +++ b/vue2-boot/src/main/resources/application.yml @@ -2,7 +2,7 @@ server: tomcat: uri-encoding: UTF-8 - port: 8081 + port: 9091 servlet: context-path: /