From a24ace524591bea1a7ec207cb34548dd10934747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A6=8F=E9=A1=BA?= Date: Fri, 29 Dec 2023 16:22:46 +0800 Subject: [PATCH] 1.login --- Dockerfile | 15 +++++++++++++++ pom.xml | 1 + src/main/resources/static/index.html | 12 +++++++----- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..31fc13f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM openjdk:17-slim + + +#对时作用 +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + +#目录是终端默认在此目录下 +WORKDIR /test + +EXPOSE 8081 +#如果是到文件夹后面必须加上「/」,不然会找不到文件,./代表当前目录即是/test 目录 +COPY ./target/login.jar ./app/ + +#poi.jar 包就会在根目录/test/app/poi.jar 下 +CMD java -jar ./app/login.jar diff --git a/pom.xml b/pom.xml index d34de42..62d2774 100644 --- a/pom.xml +++ b/pom.xml @@ -44,6 +44,7 @@ + login org.springframework.boot diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index e2b231e..abc0f3d 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -244,9 +244,9 @@ @@ -319,12 +319,14 @@ + data.yhm + '&sign=' + data.sign + '×tamp=' + data.timestamp - + '&account=' + data.account; + + '&account=' + data.account + + '&veLang=enus' + ; } }) }else{ // 调用 showErrorToast 函数来展示错误信息 - showToast("用户名或密码错误.", "error") + showToast("Incorrect username or password.", "error") } })