Explorar o código

improvement: 更新邮件配置,jar包方式

ChenSiTong %!s(int64=6) %!d(string=hai) anos
pai
achega
c57ef8b6b6

+ 1 - 1
pom.xml

@@ -11,7 +11,7 @@
     <groupId>nju.seec</groupId>
     <artifactId>helper</artifactId>
     <version>0.0.1-SNAPSHOT</version>
-    <packaging>war</packaging>
+    <packaging>jar</packaging>
     <name>helper</name>
     <description>backend</description>
 

+ 16 - 16
src/main/java/nju/seec/helper/ServletInitializer.java

@@ -1,16 +1,16 @@
-package nju.seec.helper;
-
-import org.springframework.boot.builder.SpringApplicationBuilder;
-import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
-
-/**
- * @author cst
- */
-public class ServletInitializer extends SpringBootServletInitializer {
-
-    @Override
-    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
-        return application.sources(HelperApplication.class);
-    }
-
-}
+//package nju.seec.helper;
+//
+//import org.springframework.boot.builder.SpringApplicationBuilder;
+//import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+//
+///**
+// * @author cst
+// */
+//public class ServletInitializer extends SpringBootServletInitializer {
+//
+//    @Override
+//    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+//        return application.sources(HelperApplication.class);
+//    }
+//
+//}

+ 3 - 0
src/main/resources/application-dev.yml

@@ -28,6 +28,9 @@ spring:
       mail:
         smtp:
           auth: true
+          socketFactory:
+            class: javax.net.ssl.SSLSocketFactory
+            port: 465
           starttls:
             enable: true
             required: true