summaryrefslogtreecommitdiff
path: root/src/main/java/net/geedge/asw/AppSketchWokrsApplication.java
diff options
context:
space:
mode:
authorfangshunjian <[email protected]>2024-06-21 11:00:58 +0800
committerfangshunjian <[email protected]>2024-06-21 11:00:58 +0800
commit0f9fff2f41d16a32c3c95606ca192ad2c33b810e (patch)
tree3fb53ec3cd9103d2bde87b53a2bc25fc6dacd207 /src/main/java/net/geedge/asw/AppSketchWokrsApplication.java
初始化项目HEADmain
Diffstat (limited to 'src/main/java/net/geedge/asw/AppSketchWokrsApplication.java')
-rw-r--r--src/main/java/net/geedge/asw/AppSketchWokrsApplication.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/net/geedge/asw/AppSketchWokrsApplication.java b/src/main/java/net/geedge/asw/AppSketchWokrsApplication.java
new file mode 100644
index 0000000..03f39fa
--- /dev/null
+++ b/src/main/java/net/geedge/asw/AppSketchWokrsApplication.java
@@ -0,0 +1,24 @@
+package net.geedge.asw;
+
+import java.util.TimeZone;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.PropertySource;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+import net.geedge.asw.common.util.Constants;
+import net.geedge.asw.common.util.T;
+
+@SpringBootApplication(proxyBeanMethods = false)
+@EnableTransactionManagement
+@PropertySource(value = {"file:./config/asw.properties", "classpath:./config/asw.properties"}, encoding = "utf-8", ignoreResourceNotFound = true)
+public class AppSketchWokrsApplication {
+
+ public static void main(String[] args) throws Exception {
+ TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
+ System.setProperty("jasypt.encryptor.password", T.HexUtil.encodeHexStr(Constants.AES_KEY));
+ SpringApplication.run(AppSketchWokrsApplication.class, args);
+ }
+
+}