commit c75f5319ab4d63e3722db3e4bf99f797e182478b Author: Wen JY Date: Mon Aug 14 09:26:14 2023 +0800 Init - 初始化仓库 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 0000000..19ce11b Binary files /dev/null and b/out/artifacts/config_jar/config.jar differ 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 0000000..5431178 Binary files /dev/null and b/target/classes/Application.class differ diff --git a/target/classes/com/roufid/tutorials/util/AInterceptor.class b/target/classes/com/roufid/tutorials/util/AInterceptor.class new file mode 100755 index 0000000..bbcabef Binary files /dev/null and b/target/classes/com/roufid/tutorials/util/AInterceptor.class differ