From 4214352f2e0ebc3fd01aeb8d722a7aaa704a5743 Mon Sep 17 00:00:00 2001 From: xiangwbs Date: Sun, 19 Nov 2017 15:38:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=9D=99=E6=80=81=E8=B5=84?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xwbing/configuration/DispatcherServletConfig.java | 6 +++--- boot-web/src/main/resources/static/js/route.js | 1 + boot-web/src/main/resources/static/login.html | 0 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 boot-web/src/main/resources/static/js/route.js create mode 100644 boot-web/src/main/resources/static/login.html diff --git a/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java b/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java index 51b2072..b8e6505 100644 --- a/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java +++ b/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java @@ -44,11 +44,11 @@ public class DispatcherServletConfig extends WebMvcConfigurerAdapter { /** * 配置静态访问资源 - * 默认: + * 默认:优先级 + * classpath:/META-INF/resources + * classpath:/resources * classpath:/static * classpath:/public - * classpath:/resources - * classpath:/META-INF/resources * * @param registry */ diff --git a/boot-web/src/main/resources/static/js/route.js b/boot-web/src/main/resources/static/js/route.js new file mode 100644 index 0000000..7277d66 --- /dev/null +++ b/boot-web/src/main/resources/static/js/route.js @@ -0,0 +1 @@ +var base_path="http://localhost:8080/"; \ No newline at end of file diff --git a/boot-web/src/main/resources/static/login.html b/boot-web/src/main/resources/static/login.html new file mode 100644 index 0000000..e69de29