From 659e8728bbbb4ad6ab234799dbc22697806bd1bc Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Fri, 25 Aug 2023 16:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 10 +++++++++ src/main/resources/application.properties | 4 ++++ src/main/resources/static/index.html | 27 +++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/main/resources/static/index.html diff --git a/pom.xml b/pom.xml index ecb8837..2ec360e 100644 --- a/pom.xml +++ b/pom.xml @@ -111,6 +111,16 @@ + + + + src/main/resources + + static/** + + false + + org.springframework.boot diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f5a44fd..f45f7b9 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -3,6 +3,10 @@ server.port=9099 logging.config=classpath:logback-spring.xml logging.path=./logs/ +# 静态资源 +spring.web.resources.static-locations=classpath:/static/ +spring.mvc.static-path-pattern=/static/** + mybatis.mapper-locations=classpath*:/mapper/szwh/*.xml mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl # 开启调试sql语句 diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html new file mode 100644 index 0000000..2e66d51 --- /dev/null +++ b/src/main/resources/static/index.html @@ -0,0 +1,27 @@ + + + + + + + EventSource测试 + + +
EventSource测试
+
    + + + \ No newline at end of file