Browse Source

处理github 安全扫描楼栋

java110 4 years ago
parent
commit
e96b65c34d

+ 0 - 61
java110-core/src/test/java/com/java110/AppTest.java

@@ -1,61 +0,0 @@
-package com.java110;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import org.apache.ibatis.ognl.Ognl;
-import org.apache.ibatis.ognl.OgnlContext;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest
-        extends TestCase {
-    /**
-     * Create the test case
-     *
-     * @param testName name of the test case
-     */
-    public AppTest(String testName) {
-        super(testName);
-    }
-
-    /**
-     * @return the suite of tests being tested
-     */
-    public static Test suite() {
-        return new TestSuite(AppTest.class);
-    }
-
-    /**
-     * Rigourous Test :-)
-     */
-    public void testApp() {
-        assertTrue(true);
-    }
-
-    public void testOgnl() throws Exception{
-
-        //创建一个Ognl上下文对象
-        OgnlContext context = new OgnlContext();
-
-        Map user = new HashMap();
-        user.put("id", "123213");
-        user.put("name", "张三");
-
-        context.putAll(user);
-
-        Object node = Ognl.parseExpression("id != null and name != null");
-
-        Object value = Ognl.getValue(node,context);
-
-        System.out.printf("value : " + value);
-
-
-
-
-    }
-}

+ 0 - 16
java110-core/src/test/java/com/java110/core/factory/AuthenticationFactoryTest.java

@@ -1,16 +0,0 @@
-package com.java110.core.factory;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * Created by wuxw on 2019/3/20.
- */
-public class AuthenticationFactoryTest {
-    @Test
-    public void passwdMd5() throws Exception {
-        System.out.println(AuthenticationFactory.passwdMd5("admin"));
-    }
-
-}

+ 0 - 82
java110-core/src/test/java/com/java110/core/jsonpath/JsonPathTest.java

@@ -1,82 +0,0 @@
-package com.java110.core.jsonpath;
-
-import com.alibaba.fastjson.JSONObject;
-import com.alibaba.fastjson.JSONPath;
-import org.junit.Test;
-
-/**
- * Created by wuxw on 2017/9/13.
- */
-public class JsonPathTest {
-
-    @Test
-    public void test() throws Exception {
-       /* stringRedisTemplate.opsForValue().set("aaa", "111");
-        Assert.assertEquals("111", stringRedisTemplate.opsForValue().get("aaa"));*/
-    }
-
-    @Test
-    public void testObj() throws Exception {
-        String  req = "{\n" +
-                "    \"ContractRoot\": {\n" +
-                "        \"SvcCont\": {\n" +
-                "\t \"CustOrderInfo\": {\n" +
-                "                \"CustId\": \"713005098855\",\n" +
-                "                \"StaffCode\": \"QH1001\",\n" +
-                "                \"ChannelNbr\": \"6301041000000\",\n" +
-                "                \"RegionCode\": \"8630101\",\n" +
-                "                \"OrderId\": \"No Requsted\",\n" +
-                "\"AttrInfos\":[\n" +
-                "{\n" +
-                "\"AttrSpecId\":\"40020005\",\n" +
-                "\"AttrValue\":\"\",\n" +
-                "\"AttrType\":\"1\"\n" +
-                "},\n" +
-                "{\n" +
-                "\"AttrSpecId\":\"40020006\",\n" +
-                "\"AttrValue\":\"\",\n" +
-                "\"AttrType\":\"1\"\n" +
-                "},\n" +
-                "{\n" +
-                "\"AttrSpecId\":\"40020007\",\n" +
-                "\"AttrValue\":\"\",\n" +
-                "\"AttrType\":\"1\"\n" +
-                "}\n" +
-                "]\n" +
-                "            },\n" +
-                "            \"ProdOfferInfo\": [\n" +
-                "                {\n" +
-                "                    \"ProdOfferNbr\": \"800009346\",\n" +
-                "                    \"ProdOfferInstId\": \"-1\",\n" +
-                "                    \"Action\": \"ADD\",\n" +
-                "\"startDt\":\"20170426094245\",\n" +
-                "\"endDt\":\"30000000000000\",\n" +
-                "                    \"AttrInfos\": [{\n" +
-                "\"AttrSpecId\":\"800009346\",\n" +
-                "\"AttrValue\":\"800009346\"\n" +
-                "}],\n" +
-                "                    \"OfferProdRelInfo\": [\n" +
-                "                        {\n" +
-                "                            \"ProdInstId\": \"713030122316\",\n" +
-                "                            \"RoleCd\": \"7006\"\n" +
-                "                        }\n" +
-                "                    ]\n" +
-                "                }\n" +
-                "            ]  \n" +
-                "        },\n" +
-                "        \"TcpCont\": {\n" +
-                "            \"AppKey\": \"1001000102\",\n" +
-                "            \"DstSysID\": \"6004050001\",\n" +
-                "            \"Method\": \"order.offer.addprodoffer\",\n" +
-                "            \"Sign\": \"123\",\n" +
-                "            \"Version\": \"1.0\",\n" +
-                "            \"TransactionID\": \"6001000102201703250000014160\",\n" +
-                "            \"ReqTime\": \"20170325115245788\"\n" +
-                "        }\n" +
-                "    }\n" +
-                "}";
-
-        Object obj = JSONPath.eval(JSONObject.parseObject(req),"$.ContractRoot.SvcCont.ProdOfferInfo.AttrInfos[AttrSpecId not in ('40020005','40020006','40020007')]");
-        System.out.println(obj.toString());
-    }
-}

+ 6 - 6
pom.xml

@@ -43,14 +43,14 @@
         <maven.compile.target>1.8</maven.compile.target>
         <sourceEncoding>UTF-8</sourceEncoding>
         <spring-boot>2.0.4.RELEASE</spring-boot>
-        <mybatis.version>3.3.0</mybatis.version>
+        <mybatis.version>3.5.6</mybatis.version>
         <microcommunity.version>1.0-SNAPSHOT</microcommunity.version>
         <dubbo.version>2.5.4-SNAPSHOT</dubbo.version>
-        <logback.vaersion>1.2.3</logback.vaersion>
+        <logback.vaersion>1.2.9</logback.vaersion>
 
         <apache.common.lang3.version>3.4</apache.common.lang3.version>
-        <mybatis.version>3.4.1</mybatis.version>
-        <log4j.version>2.17.0</log4j.version>
+        <mybatis.version>3.5.6</mybatis.version>
+        <log4j.version>2.17.1</log4j.version>
         <tomcat.servlet.version>6.0.37</tomcat.servlet.version>
         <druid.version>1.1.10</druid.version>
         <mybatis-spring.version>1.3.1</mybatis-spring.version>
@@ -63,7 +63,7 @@
         <commons-lang.version>2.5</commons-lang.version>
         <commons-beanutils.version>1.8.0</commons-beanutils.version>
         <slf4j.version>1.7.7</slf4j.version>
-        <logback.version>1.1.2</logback.version>
+        <logback.version>1.2.9</logback.version>
         <activemq.version>5.7.0</activemq.version>
         <xbean.version>3.18</xbean.version>
         <axis.version>1.4</axis.version>
@@ -437,7 +437,7 @@
             <dependency>
                 <groupId>org.jsoup</groupId>
                 <artifactId>jsoup</artifactId>
-                <version>1.11.3</version>
+                <version>1.14.2</version>
             </dependency>
 
             <!-- 引入poi,解析workbook视图 -->