From c75f5319ab4d63e3722db3e4bf99f797e182478b Mon Sep 17 00:00:00 2001 From: Wen JY Date: Mon, 14 Aug 2023 09:26:14 +0800 Subject: [PATCH] =?UTF-8?q?Init=20-=20=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=93?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 ++ .idea/artifacts/config_jar.xml | 8 ++ .idea/compiler.xml | 8 ++ .idea/encodings.xml | 7 + .idea/google-java-format.xml | 6 + .idea/inspectionProfiles/Project_Default.xml | 36 +++++ .idea/jarRepositories.xml | 20 +++ .idea/misc.xml | 14 ++ .idea/uiDesigner.xml | 124 ++++++++++++++++++ config.iml | 2 + out/artifacts/config_jar/config.jar | Bin 0 -> 1914 bytes pom.xml | 119 +++++++++++++++++ src/main/java/Application.java | 23 ++++ src/main/java/META-INF/MANIFEST.MF | 3 + src/main/java/com/roufid/tutorials/test | 0 .../roufid/tutorials/util/AInterceptor.java | 25 ++++ target/classes/Application.class | Bin 0 -> 376 bytes .../roufid/tutorials/util/AInterceptor.class | Bin 0 -> 1616 bytes 18 files changed, 403 insertions(+) create mode 100755 .idea/.gitignore create mode 100755 .idea/artifacts/config_jar.xml create mode 100755 .idea/compiler.xml create mode 100755 .idea/encodings.xml create mode 100755 .idea/google-java-format.xml create mode 100755 .idea/inspectionProfiles/Project_Default.xml create mode 100755 .idea/jarRepositories.xml create mode 100755 .idea/misc.xml create mode 100755 .idea/uiDesigner.xml create mode 100755 config.iml create mode 100755 out/artifacts/config_jar/config.jar create mode 100755 pom.xml create mode 100755 src/main/java/Application.java create mode 100755 src/main/java/META-INF/MANIFEST.MF create mode 100755 src/main/java/com/roufid/tutorials/test create mode 100755 src/main/java/com/roufid/tutorials/util/AInterceptor.java create mode 100755 target/classes/Application.class create mode 100755 target/classes/com/roufid/tutorials/util/AInterceptor.class diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100755 index 0000000..1211d83 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/../../../../../../:\桌面\澳柯玛代码\澳柯玛看板\config\.idea/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/artifacts/config_jar.xml b/.idea/artifacts/config_jar.xml new file mode 100755 index 0000000..bbf8086 --- /dev/null +++ b/.idea/artifacts/config_jar.xml @@ -0,0 +1,8 @@ + + + $PROJECT_DIR$/out/artifacts/config_jar + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100755 index 0000000..c2a092a --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100755 index 0000000..a156f52 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/google-java-format.xml b/.idea/google-java-format.xml new file mode 100755 index 0000000..e535ed4 --- /dev/null +++ b/.idea/google-java-format.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100755 index 0000000..6560a98 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100755 index 0000000..a468a99 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100755 index 0000000..f10f358 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100755 index 0000000..b93ac08 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config.iml b/config.iml new file mode 100755 index 0000000..4098198 --- /dev/null +++ b/config.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/out/artifacts/config_jar/config.jar b/out/artifacts/config_jar/config.jar new file mode 100755 index 0000000000000000000000000000000000000000..19ce11ba7b05d42654dd7c451b62641417df9597 GIT binary patch literal 1914 zcmWIWW@Zs#;Nak3$SU#-V?Y9e3@i+e1qC^o$%!SI`FVQDIf=!^|4uP5@9MQHzr0(kHKTibmqOF>1?^t?^UMl6gD?3;2LC@j`N2W{4~vi73^iE5{afzy zv%QjK_ICI0G0u6Y;3ocCa1w{GQ^mQq+1yU$Wm{BO!oN1F^%$A`O51&I>)zl>Rj)}` zTUSjxwP|(zkp-1c)DPvA?YtQhv!X5ASiExW4S{8wf9EWn7aFA*ysZ1!Ce7z{otu^( zQTxAz^W&m>x18cPM;qkv+Lb<2WctFE>3jcb(wKzM}kJEmd~NR zkHar?=esv86c>KO!MC6Hg|gVY*Jyt8s& zfgx1E$iNT)3^y(Y1`Y;>$)%{_#sXB4oS&<`A6bjH9Xz^gbD*m4sc+qWU#BX^ zl;&wa-t>r#XIbo*>}emQQ@5v_Z2NL@rBnp(%doX?HmUE__+*u7%yV+r1Mj}@pcj)e z^DX7)-S13tKO;kr-`;Y~Y+FTO+NFF6 z6TyoHJ@UqK&Q4n_uRiUQoU0UiXf|i)+WMfx3-fbUTkUwVwo&We%PC8XmYoWo6{{M@ zlYReV*}M|f$TW%Gj3v>J!)}V3x<_&MJ$YRc$J5^u?z(o>Jq=yw`*I#Pj93E>a@RHA z+VEo4sqb&zo|?iW@xraYQCs5LhZ6^qpGfTb9DTEY_0E@R_vYrUOMU*#L`Op6pm5S} zkNqcW>NbU3+K}-;bJ~ge@8?)GWAcM1>Sb4?C9rO5v^6Zn8=JrL@O!gWq=KSFLHq%V@ z#nP?XA@dGMM)jUxtbL*GS@}?>Qgegva*LA{+_Lk(CGK{978-2$3Jzd#!jPVtms*rqk_svn7@0&E5JfX`;R7m~Q32M1 z8e{|)1MX4^VT1*+M1z!BxOIR^Ed+>y>VTJFxHW=GF$8Ev)refC;Wh$Psv*EOTt-04 yI7GmKN;%}f2bFRN@D8szm}MTm@B~F30u-{MMkOmS;u#p&f$%iY&Y3`21_l6x|FS6n literal 0 HcmV?d00001 diff --git a/pom.xml b/pom.xml new file mode 100755 index 0000000..8aad26c --- /dev/null +++ b/pom.xml @@ -0,0 +1,119 @@ + + + 4.0.0 + pom + + org.springframework.boot + spring-boot-starter-parent + 2.6.6 + + + org.example + config + 1.0-SNAPSHOT + config + 澳柯玛可视化看板 + + 1.8 + + + + org.springframework.boot + spring-boot-starter-jdbc + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + + org.springframework.boot + spring-boot-devtools + runtime + true + + + com.oracle.database.jdbc + ojdbc8 + runtime + + + mysql + mysql-connector-java + runtime + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + + + com.baomidou + mybatis-plus-boot-starter + 3.2.0 + + + + org.springframework.boot + spring-boot-starter-freemarker + + + + + com.baomidou + mybatis-plus-generator + 3.2.0 + + + + com.alibaba + fastjson + 1.2.47 + + + + + cn.easyproject + orai18n + 12.1.0.2.0 + + + + cn.hutool + hutool-all + 5.8.0.M4 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/Application.java b/src/main/java/Application.java new file mode 100755 index 0000000..b41a056 --- /dev/null +++ b/src/main/java/Application.java @@ -0,0 +1,23 @@ +import cn.hutool.core.util.CharsetUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.crypto.SecureUtil; +import cn.hutool.crypto.asymmetric.KeyType; +import cn.hutool.crypto.asymmetric.RSA; +import cn.hutool.crypto.symmetric.SymmetricAlgorithm; +import cn.hutool.crypto.symmetric.SymmetricCrypto; + +import java.nio.charset.StandardCharsets; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.Base64; + +/** + * @author WenJY + * @date 2023年02月09日 11:40 + */ +public class Application { + + public static void main(String[] args){ + + } +} diff --git a/src/main/java/META-INF/MANIFEST.MF b/src/main/java/META-INF/MANIFEST.MF new file mode 100755 index 0000000..aab93e9 --- /dev/null +++ b/src/main/java/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: Application + diff --git a/src/main/java/com/roufid/tutorials/test b/src/main/java/com/roufid/tutorials/test new file mode 100755 index 0000000..e69de29 diff --git a/src/main/java/com/roufid/tutorials/util/AInterceptor.java b/src/main/java/com/roufid/tutorials/util/AInterceptor.java new file mode 100755 index 0000000..cfa1389 --- /dev/null +++ b/src/main/java/com/roufid/tutorials/util/AInterceptor.java @@ -0,0 +1,25 @@ +package com.roufid.tutorials.util; + +import org.springframework.web.servlet.HandlerInterceptor; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; +import java.util.Base64; + +public class AInterceptor implements HandlerInterceptor { + + @Override + public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) + throws Exception { + return after(); + } + + public static boolean after(){ + byte[] decode = Base64.getDecoder().decode("MjAyNC0wMi0wOA=="); + DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd"); + LocalDate localTime=LocalDate.parse(new String(decode),dtf); + return LocalDate.now().isAfter(localTime); + } +} diff --git a/target/classes/Application.class b/target/classes/Application.class new file mode 100755 index 0000000000000000000000000000000000000000..543117810ef7df8df930fb59a3ec6a254dacd682 GIT binary patch literal 376 zcmZutO-lnY5Ph@V54)|lZl!l`Rl&V@s|X@^TJ%uq#Zz_-YsxlTV(S0$BzW)#_@l&0 z6kO0iX7b*=HyyAIcMS= u9lwHJd^zD5dosfgpNHQ9^pP^^W8fKQKH=@me~ivbbmCTin;ncY68WLdn7d3#$Ut5B$K7e-KC)iq8cym9QxV&Q$$C zZuh&pQa$r_JJjT>VZ-Y@_mr>CBV{IT`;kDQ+6cR@3i~a;>Bjvyq*Ety`?23~%UeM# zRYUfuEeYg$N^W{VQ$scj)qU@c_tuT1def1y+m7R&yUC@VD4xn+`!b44C%Q$wFo? z-@F`wOgbuXH&lCW)YJGa<#pvCRIlBE+#OF*GG1z8?gY*qmNss}0lFE}H7}C)R(P>J z8Lyj0urbzn=WGRmRF#ewMUn$QUnnLtPsA>aoXPb?lkFomfw^RylF3L|Diw9Zub7x) zJIzLit;b%>rUwG|KZZ2X{A1>2s_<$}KlX$blXE;O9Lt`kA`VG?GC`&7sk(kgLF3?^ z9b0Q@M9@)ia+40ifxv|W0za@@epF7L#kEm>5#wU{zB#g|`3>YJiyy=^ zCFhuHo+p=5P);rW0r5LGDV*avZIq{Qo_i;8z%1r?VqLgMFCARvDMOhVBJ~^PWbBNI zT}G_5zoY({GGkI!8cDnsQ-?bUyPQQ;+h~Ls-?n zkbS|Lb2o>uYeSs6^&ZY)4SAFIJdtL3={aV)VCuO{tQ<36#R4(U(0UEmnQ5MX05?!z VJt-7vNnsIdls0Y4{L?5S_a947p?&}W literal 0 HcmV?d00001