소스 검색

最新版JFinal

龚成明 3 년 전
부모
커밋
feb51aeb29
4개의 변경된 파일7개의 추가작업 그리고 12개의 파일을 삭제
  1. 1 8
      pom.xml
  2. 6 4
      src/main/java/common/config/WebConfig.java
  3. 0 0
      src/test/http/SwapPathTest.http
  4. 0 0
      src/test/http/http-client.env.json

+ 1 - 8
pom.xml

@@ -19,13 +19,6 @@
     </properties>
 
     <dependencies>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>4.11</version>
-            <scope>test</scope>
-        </dependency>
-
         <dependency>
             <groupId>com.jfinal</groupId>
             <artifactId>jfinal-undertow</artifactId>
@@ -35,7 +28,7 @@
         <dependency>
             <groupId>com.jfinal</groupId>
             <artifactId>jfinal</artifactId>
-            <version>4.9.02</version>
+            <version>5.0.5</version>
         </dependency>
 
         <!--mysql驱动包-->

+ 6 - 4
src/main/java/common/config/WebConfig.java

@@ -16,12 +16,12 @@ import java.io.File;
 
 public class WebConfig extends JFinalConfig {
     public static boolean IsDev = false;
-    private static String url = "jdbc:mysql://localhost:3306/ethmev";
+    private static String url = "jdbc:mysql://localhost:3306/ethmev?useSSL=false";
     private static String user = "root";
     private static String password = "Qwe410410.";
 
     public static void main(String[] args) {
-        UndertowServer.start(WebConfig.class, 8088, WebConfig.IsDev);
+        UndertowServer.start(WebConfig.class, 8088, true);
     }
 
     static {
@@ -31,7 +31,9 @@ public class WebConfig extends JFinalConfig {
     }
 
     @Override
-    public void configConstant(Constants constants) {}
+    public void configConstant(Constants constants) {
+        constants.setDevMode(true);
+    }
 
     @Override
     public void configRoute(Routes routes) {
@@ -49,7 +51,7 @@ public class WebConfig extends JFinalConfig {
     @Override
     public void configPlugin(Plugins plugins) {
         if (IsDev) {
-            url = "jdbc:mysql://localhost:3306/ethmev";
+            url = "jdbc:mysql://localhost:3306/ethmev?useSSL=false";
             password = "123456";
         }
 

+ 0 - 0
src/main/test/http/SwapPathTest.http → src/test/http/SwapPathTest.http


+ 0 - 0
src/main/test/http/http-client.env.json → src/test/http/http-client.env.json