بدون توضیح

liyuan cc19773027 first commit 10 ماه پیش
build cc19773027 first commit 10 ماه پیش
config cc19773027 first commit 10 ماه پیش
demo-screenshot cc19773027 first commit 10 ماه پیش
src cc19773027 first commit 10 ماه پیش
static cc19773027 first commit 10 ماه پیش
test cc19773027 first commit 10 ماه پیش
.babelrc cc19773027 first commit 10 ماه پیش
.editorconfig cc19773027 first commit 10 ماه پیش
.eslintignore cc19773027 first commit 10 ماه پیش
.eslintrc.js cc19773027 first commit 10 ماه پیش
.gitignore cc19773027 first commit 10 ماه پیش
.postcssrc.js cc19773027 first commit 10 ماه پیش
LICENSE cc19773027 first commit 10 ماه پیش
README.md cc19773027 first commit 10 ماه پیش
gulpfile.js cc19773027 first commit 10 ماه پیش
index.html cc19773027 first commit 10 ماه پیش
package-lock.json cc19773027 first commit 10 ماه پیش
package.json cc19773027 first commit 10 ماه پیش

README.md

#nginx配置 location / {

        proxy_pass http://127.0.0.1:8001;
    }

location /api/sys/ {

        proxy_pass http://localhost:9001/;
    }

location /api/web/ {

        proxy_pass http://localhost:9002/;
    }

#static/config/index.js

各工程的context-path也配置到了nginx上,本地访问需要跟nginx同步,本地拆成两部分, 在这个配置文件上配置前一半,http://127.0.0.1:8001/api/,context-path写到文件具体的rest请求上, 例如/sys/login,合起来就是http://127.0.0.1:8001/api/sys/login, 在转发的过程中,nginx已经转发到http://localhost:9001/api/sys, 所以在实际的rest工程里,springboot的request-mapping只需要配置/login,这样是为了以后好扩展Rest工程