Ver Fonte

注释修改

hermit há 7 anos atrás
pai
commit
02d812bf5f
100 ficheiros alterados com 2034 adições e 385 exclusões
  1. 33 60
      pom.xml
  2. 18 0
      src/main/java/com/wxmp/core/annotation/Auth.java
  3. 18 0
      src/main/java/com/wxmp/core/annotation/FrontAuth.java
  4. 18 0
      src/main/java/com/wxmp/core/annotation/Repeat.java
  5. 16 4
      src/main/java/com/wxmp/core/common/AppDefineInitService.java
  6. 16 4
      src/main/java/com/wxmp/core/common/BaseCtrl.java
  7. 19 1
      src/main/java/com/wxmp/core/common/Configuration.java
  8. 18 0
      src/main/java/com/wxmp/core/common/Constants.java
  9. 18 0
      src/main/java/com/wxmp/core/common/DataModel.java
  10. 19 1
      src/main/java/com/wxmp/core/common/I18n.java
  11. 18 0
      src/main/java/com/wxmp/core/common/IBase.java
  12. 19 1
      src/main/java/com/wxmp/core/common/Identities.java
  13. 18 0
      src/main/java/com/wxmp/core/common/TableModel.java
  14. 19 1
      src/main/java/com/wxmp/core/common/XMLDocException.java
  15. 16 4
      src/main/java/com/wxmp/core/exception/BusinessException.java
  16. 16 4
      src/main/java/com/wxmp/core/exception/UnexpectedException.java
  17. 18 1
      src/main/java/com/wxmp/core/exception/WxError.java
  18. 18 0
      src/main/java/com/wxmp/core/exception/WxErrorException.java
  19. 18 0
      src/main/java/com/wxmp/core/interceptor/AuthInterceptor.java
  20. 18 1
      src/main/java/com/wxmp/core/interceptor/TestCaseInterceptor.java
  21. 16 4
      src/main/java/com/wxmp/core/listener/InitListener.java
  22. 18 0
      src/main/java/com/wxmp/core/page/Page.java
  23. 18 0
      src/main/java/com/wxmp/core/page/PageInterceptor.java
  24. 18 0
      src/main/java/com/wxmp/core/page/PageResult.java
  25. 18 0
      src/main/java/com/wxmp/core/page/PageUtil.java
  26. 18 0
      src/main/java/com/wxmp/core/spring/ExceptionHolder.java
  27. 73 56
      src/main/java/com/wxmp/core/spring/JsonView.java
  28. 18 0
      src/main/java/com/wxmp/core/spring/SpringBeanDefineConfigue.java
  29. 18 0
      src/main/java/com/wxmp/core/spring/SpringBeanDefineService.java
  30. 18 0
      src/main/java/com/wxmp/core/spring/SpringContextHolder.java
  31. 18 1
      src/main/java/com/wxmp/core/spring/SpringFreemarkerContextPathUtil.java
  32. 18 0
      src/main/java/com/wxmp/core/util/AjaxResult.java
  33. 18 0
      src/main/java/com/wxmp/core/util/ApplicatonStaticUtil.java
  34. 17 2
      src/main/java/com/wxmp/core/util/ArrayUtil.java
  35. 18 0
      src/main/java/com/wxmp/core/util/BeanUtil.java
  36. 18 0
      src/main/java/com/wxmp/core/util/CacheJ2Utils.java
  37. 16 4
      src/main/java/com/wxmp/core/util/CacheUtils.java
  38. 18 1
      src/main/java/com/wxmp/core/util/CalendarUtil.java
  39. 17 2
      src/main/java/com/wxmp/core/util/CharsetUtil.java
  40. 18 0
      src/main/java/com/wxmp/core/util/CommonUtil.java
  41. 18 0
      src/main/java/com/wxmp/core/util/ConvertUtil.java
  42. 18 1
      src/main/java/com/wxmp/core/util/CookieUtil.java
  43. 17 2
      src/main/java/com/wxmp/core/util/DataUtil.java
  44. 18 0
      src/main/java/com/wxmp/core/util/DateUtil.java
  45. 19 2
      src/main/java/com/wxmp/core/util/DateUtilOld.java
  46. 18 0
      src/main/java/com/wxmp/core/util/Digests.java
  47. 18 0
      src/main/java/com/wxmp/core/util/Encodes.java
  48. 18 0
      src/main/java/com/wxmp/core/util/EncryptUtil.java
  49. 18 0
      src/main/java/com/wxmp/core/util/Exceptions.java
  50. 17 2
      src/main/java/com/wxmp/core/util/ExcptUtil.java
  51. 18 0
      src/main/java/com/wxmp/core/util/FileUtil.java
  52. 17 2
      src/main/java/com/wxmp/core/util/GzipUtil.java
  53. 18 0
      src/main/java/com/wxmp/core/util/HashUtil.java
  54. 19 1
      src/main/java/com/wxmp/core/util/HttpClientUtils.java
  55. 18 0
      src/main/java/com/wxmp/core/util/HttpConnectionUtil.java
  56. 18 0
      src/main/java/com/wxmp/core/util/HttpRequestDeviceUtils.java
  57. 18 0
      src/main/java/com/wxmp/core/util/HttpUtil.java
  58. 19 1
      src/main/java/com/wxmp/core/util/ImageUtil.java
  59. 19 1
      src/main/java/com/wxmp/core/util/ImageUtils.java
  60. 18 0
      src/main/java/com/wxmp/core/util/ImgTypeUtil.java
  61. 19 1
      src/main/java/com/wxmp/core/util/J2CacheUtil.java
  62. 19 2
      src/main/java/com/wxmp/core/util/JSONUtil.java
  63. 18 0
      src/main/java/com/wxmp/core/util/MD5Util.java
  64. 18 0
      src/main/java/com/wxmp/core/util/MyTrustManager.java
  65. 18 0
      src/main/java/com/wxmp/core/util/Num62.java
  66. 18 0
      src/main/java/com/wxmp/core/util/PasswordUtil.java
  67. 18 0
      src/main/java/com/wxmp/core/util/PropertiesConfigUtil.java
  68. 18 0
      src/main/java/com/wxmp/core/util/PropertiesUtil.java
  69. 17 2
      src/main/java/com/wxmp/core/util/ReflectionUtil.java
  70. 18 0
      src/main/java/com/wxmp/core/util/SecurityUtil.java
  71. 19 1
      src/main/java/com/wxmp/core/util/SessionUtil.java
  72. 18 0
      src/main/java/com/wxmp/core/util/SpringContextFactory.java
  73. 19 1
      src/main/java/com/wxmp/core/util/SpringUtils.java
  74. 17 2
      src/main/java/com/wxmp/core/util/StringUtil.java
  75. 17 2
      src/main/java/com/wxmp/core/util/ThreadUtil.java
  76. 18 0
      src/main/java/com/wxmp/core/util/UTF8StringHttpMessageConverter.java
  77. 18 1
      src/main/java/com/wxmp/core/util/UploadUtil.java
  78. 18 0
      src/main/java/com/wxmp/core/util/ValidateUtil.java
  79. 17 2
      src/main/java/com/wxmp/core/util/WebUtil.java
  80. 18 0
      src/main/java/com/wxmp/core/util/XmlUtil.java
  81. 116 76
      src/main/java/com/wxmp/core/util/qiniu/QiniuResult.java
  82. 118 101
      src/main/java/com/wxmp/core/util/qiniu/QiniuUtil.java
  83. 18 0
      src/main/java/com/wxmp/core/util/security/BASE64Encoder.java
  84. 19 1
      src/main/java/com/wxmp/core/util/security/BouncyCastleProvider.java
  85. 18 0
      src/main/java/com/wxmp/core/util/security/Hex.java
  86. 18 0
      src/main/java/com/wxmp/core/util/security/RSAKeys.java
  87. 18 0
      src/main/java/com/wxmp/core/util/security/RSASignatureTools.java
  88. 17 2
      src/main/java/com/wxmp/core/util/security/SecurityCoder.java
  89. 17 2
      src/main/java/com/wxmp/core/util/security/coder/DESCoder.java
  90. 17 2
      src/main/java/com/wxmp/core/util/security/coder/HmacCoder.java
  91. 17 2
      src/main/java/com/wxmp/core/util/security/coder/MDCoder.java
  92. 17 2
      src/main/java/com/wxmp/core/util/security/coder/RSACoder.java
  93. 17 2
      src/main/java/com/wxmp/core/util/security/coder/SHACoder.java
  94. 17 2
      src/main/java/com/wxmp/core/util/security/http/HTTPSCoder.java
  95. 17 2
      src/main/java/com/wxmp/core/util/security/http/HTTPSPKCSCoder.java
  96. 18 0
      src/main/java/com/wxmp/core/util/wx/HTTPResultXml.java
  97. 18 0
      src/main/java/com/wxmp/core/util/wx/RequestHandler.java
  98. 18 1
      src/main/java/com/wxmp/core/util/wx/SignUtil.java
  99. 18 12
      src/main/java/com/wxmp/core/util/wx/TenpayUtil2.java
  100. 0 0
      src/main/java/com/wxmp/core/util/wx/WxUtil.java

+ 33 - 60
pom.xml

@@ -29,11 +29,25 @@
         <commons-beanutils.version>1.9.1</commons-beanutils.version>
         <xstream.version>1.4.9</xstream.version>
         <jackson.version>2.8.6</jackson.version>
+        <fastjson.version>1.2.4</fastjson.version>
+        <metadata-extractor.version>2.6.2</metadata-extractor.version>
         <jsoup.version>1.11.2</jsoup.version>
         <lombok.version>1.16.16</lombok.version>
         <guava.version>20.0</guava.version>
         <commons-lang3.version>3.5</commons-lang3.version>
         <common-lang.version>2.6</common-lang.version>
+        <zxing.version>2.2</zxing.version>
+        <junit.version>4.11</junit.version>
+        <httpclient.version>4.5.2</httpclient.version>
+        <httpcore.version>4.4.6</httpcore.version>
+        <swagger-ui.version>2.5.0</swagger-ui.version>
+        <configuration.version>1.7</configuration.version>
+        <aspectj.version>1.7.4</aspectj.version>
+        <cglib.version>3.1</cglib.version>
+        <taglibs.version>1.1.2</taglibs.version>
+        <jstl.version>1.2</jstl.version>
+        <servlet-api.version>3.0.1</servlet-api.version>
+        <commons-dbcp.version>1.4</commons-dbcp.version>
         <!-- jdbc driver setting -->
         <mysql.driver.version>5.1.30</mysql.driver.version>
 
@@ -178,17 +192,17 @@
         <dependency>
             <groupId>org.aspectj</groupId>
             <artifactId>aspectjrt</artifactId>
-            <version>1.7.4</version>
+            <version>${aspectj.version}</version>
         </dependency>
         <dependency>
             <groupId>org.aspectj</groupId>
             <artifactId>aspectjweaver</artifactId>
-            <version>1.7.4</version>
+            <version>${aspectj.version}</version>
         </dependency>
         <dependency>
             <groupId>cglib</groupId>
             <artifactId>cglib</artifactId>
-            <version>3.1</version>
+            <version>${cglib.version}</version>
         </dependency>
         <!-- AOP end -->
 
@@ -240,49 +254,28 @@
         <dependency>
             <groupId>taglibs</groupId>
             <artifactId>standard</artifactId>
-            <version>1.1.2</version>
+            <version>${taglibs.version}</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>javax.servlet</groupId>
             <artifactId>jstl</artifactId>
-            <version>1.2</version>
+            <version>${jstl.version}</version>
             <type>jar</type>
         </dependency>
-        <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
         <dependency>
             <groupId>javax.servlet</groupId>
             <artifactId>javax.servlet-api</artifactId>
-            <version>3.0.1</version>
+            <version>${servlet-api.version}</version>
             <scope>provided</scope>
         </dependency>
 
-        <!-- java ee jar 包 -->
-        <dependency>
-            <groupId>javax</groupId>
-            <artifactId>javaee-api</artifactId>
-            <version>6.0</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>javax.servlet.jsp</groupId>
-            <artifactId>jsp-api</artifactId>
-            <version>2.1</version>
-            <scope>provided</scope>
-        </dependency>
-        <!-- https://mvnrepository.com/artifact/javax.persistence/persistence-api -->
         <dependency>
             <groupId>javax.persistence</groupId>
             <artifactId>persistence-api</artifactId>
             <version>1.0.2</version>
         </dependency>
-        <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-servlet -->
-        <dependency>
-            <groupId>org.eclipse.jetty</groupId>
-            <artifactId>jetty-servlet</artifactId>
-            <version>9.4.7.RC0</version>
-        </dependency>
 
         <dependency>
             <groupId>net.sf.ehcache</groupId>
@@ -351,7 +344,7 @@
         <dependency>
             <groupId>commons-dbcp</groupId>
             <artifactId>commons-dbcp</artifactId>
-            <version>1.4</version>
+            <version>${commons-dbcp.version}</version>
         </dependency>
         <!-- jackson json -->
         <dependency>
@@ -377,7 +370,7 @@
         <dependency>
             <groupId>com.alibaba</groupId>
             <artifactId>fastjson</artifactId>
-            <version>1.2.47</version>
+            <version>${fastjson.version}</version>
         </dependency>
         <!-- xstream xml -->
         <dependency>
@@ -390,26 +383,26 @@
         <dependency>
             <groupId>com.drewnoakes</groupId>
             <artifactId>metadata-extractor</artifactId>
-            <version>2.6.2</version>
+            <version>${metadata-extractor.version}</version>
         </dependency>
 
         <!-- 条形码、二维码生成  -->
         <dependency>
             <groupId>com.google.zxing</groupId>
             <artifactId>core</artifactId>
-            <version>2.2</version>
+            <version>${zxing.version}</version>
         </dependency>
         <dependency>
             <groupId>com.google.zxing</groupId>
             <artifactId>javase</artifactId>
-            <version>2.2</version>
+            <version>${zxing.version}</version>
         </dependency>
 
         <!-- TEST begin -->
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>4.11</version>
+            <version>${junit.version}</version>
         </dependency>
         <dependency>
             <groupId>org.springframework</groupId>
@@ -421,37 +414,32 @@
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpcore</artifactId>
-            <version>4.4.6</version>
+            <version>${httpcore.version}</version>
         </dependency>
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpclient</artifactId>
-            <version>4.5.2</version>
+            <version>${httpclient.version}</version>
         </dependency>
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpmime</artifactId>
-            <version>4.5.2</version>
+            <version>${httpclient.version}</version>
         </dependency>
 
         <!-- swagger-springmvc -->
         <dependency>
             <groupId>io.springfox</groupId>
             <artifactId>springfox-swagger2</artifactId>
-            <version>2.5.0</version>
+            <version>${swagger-ui.version}</version>
         </dependency>
         <dependency>
             <groupId>io.springfox</groupId>
             <artifactId>springfox-swagger-ui</artifactId>
-            <version>2.5.0</version>
+            <version>${swagger-ui.version}</version>
         </dependency>
         <!-- swagger-springmvc dependencies -->
-        <!--httpclient -->
-        <dependency>
-            <groupId>org.apache.httpcomponents</groupId>
-            <artifactId>httpclient</artifactId>
-            <version>4.5.2</version>
-        </dependency>
+      
         <!-- UTILS begin -->
         <dependency>
             <groupId>com.google.guava</groupId>
@@ -468,11 +456,10 @@
             <artifactId>commons-lang</artifactId>
             <version>${common-lang.version}</version>
         </dependency>
-        <!-- https://mvnrepository.com/artifact/commons-configuration/commons-configuration -->
         <dependency>
             <groupId>commons-configuration</groupId>
             <artifactId>commons-configuration</artifactId>
-            <version>1.7</version>
+            <version>${configuration.version}</version>
         </dependency>
         <!-- UTILS end -->
 
@@ -482,20 +469,6 @@
             <version>${jsoup.version}</version>
         </dependency>
 
-        <!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib -->
-        <dependency>
-            <groupId>net.sf.json-lib</groupId>
-            <artifactId>json-lib</artifactId>
-            <version>2.4</version>
-            <classifier>jdk15</classifier>
-        </dependency>
-        <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
-        <dependency>
-            <groupId>com.google.code.gson</groupId>
-            <artifactId>gson</artifactId>
-            <version>2.8.2</version>
-        </dependency>
-
         <!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper -->
         <dependency>
             <groupId>com.github.pagehelper</groupId>

+ 18 - 0
src/main/java/com/wxmp/core/annotation/Auth.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Auth.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.annotation;
 
 import java.lang.annotation.Documented;

+ 18 - 0
src/main/java/com/wxmp/core/annotation/FrontAuth.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:FrontAuth.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.annotation;
 
 import java.lang.annotation.Documented;

+ 18 - 0
src/main/java/com/wxmp/core/annotation/Repeat.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Repeat.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.annotation;
 
 import java.lang.annotation.Documented;

+ 16 - 4
src/main/java/com/wxmp/core/common/AppDefineInitService.java

@@ -1,8 +1,20 @@
-/**
- * Copyright &copy; 2017-2018 <a href="http://www.webcsn.com">webcsn</a> All rights reserved.
+/*
+ * FileName:AppDefineInitService.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  *
- * @author hermit
- * @date 2018-04-17 10:54:58
  */
 package com.wxmp.core.common;
 

+ 16 - 4
src/main/java/com/wxmp/core/common/BaseCtrl.java

@@ -1,8 +1,20 @@
-/**
- * Copyright &copy; 2017-2018 <a href="http://www.webcsn.com">webcsn</a> All rights reserved.
+/*
+ * FileName:BaseCtrl.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  *
- * @author hermit
- * @date 2018-04-17 10:54:58
  */
 package com.wxmp.core.common;
 

+ 19 - 1
src/main/java/com/wxmp/core/common/Configuration.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Configuration.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 
 import java.io.File;
@@ -130,4 +148,4 @@ public class Configuration
     }
     return childNodesMap;
   }
-}
+}

+ 18 - 0
src/main/java/com/wxmp/core/common/Constants.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Constants.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 
 import java.util.Arrays;

+ 18 - 0
src/main/java/com/wxmp/core/common/DataModel.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:DataModel.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 
 /**

+ 19 - 1
src/main/java/com/wxmp/core/common/I18n.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:I18n.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 
 import java.text.MessageFormat;
@@ -37,4 +55,4 @@ public class I18n
 
     return value;
   }
-}
+}

+ 18 - 0
src/main/java/com/wxmp/core/common/IBase.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:IBase.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 
 import java.util.List;

+ 19 - 1
src/main/java/com/wxmp/core/common/Identities.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Identities.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 
 import java.security.SecureRandom;
@@ -74,4 +92,4 @@ public class Identities
     }
     return sb.toString();
   }
-}
+}

+ 18 - 0
src/main/java/com/wxmp/core/common/TableModel.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:TableModel.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 
 import java.util.Map;

+ 19 - 1
src/main/java/com/wxmp/core/common/XMLDocException.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:XMLDocException.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.common;
 /**
  * @author : hermit
@@ -42,4 +60,4 @@ public class XMLDocException extends Exception
     }
     return this.exception == null ? super.toString() : this.exception.toString();
   }
-}
+}

+ 16 - 4
src/main/java/com/wxmp/core/exception/BusinessException.java

@@ -1,8 +1,20 @@
-/**
- * Copyright &copy; 2017-2018 <a href="http://www.webcsn.com">webcsn</a> All rights reserved.
+/*
+ * FileName:BusinessException.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  *
- * @author hermit
- * @date 2018-04-17 10:54:58
  */
 package com.wxmp.core.exception;
 

+ 16 - 4
src/main/java/com/wxmp/core/exception/UnexpectedException.java

@@ -1,8 +1,20 @@
-/**
- * Copyright &copy; 2017-2018 <a href="http://www.webcsn.com">webcsn</a> All rights reserved.
+/*
+ * FileName:UnexpectedException.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  *
- * @author hermit
- * @date 2018-04-17 10:54:58
  */
 package com.wxmp.core.exception;
 

+ 18 - 1
src/main/java/com/wxmp/core/exception/WxError.java

@@ -1,9 +1,26 @@
+/*
+ * FileName:WxError.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.exception;
 
 
 import java.io.Serializable;
 
-
 import com.alibaba.fastjson.JSONObject;
 import com.alibaba.fastjson.annotation.JSONField;
 

+ 18 - 0
src/main/java/com/wxmp/core/exception/WxErrorException.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:WxErrorException.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.exception;
 
 /**

+ 18 - 0
src/main/java/com/wxmp/core/interceptor/AuthInterceptor.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:AuthInterceptor.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.interceptor;
 
 import javax.servlet.http.HttpServletRequest;

+ 18 - 1
src/main/java/com/wxmp/core/interceptor/TestCaseInterceptor.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:TestCaseInterceptor.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.interceptor;
 
 import javax.servlet.http.HttpServletRequest;
@@ -56,4 +74,3 @@ public class TestCaseInterceptor extends HandlerInterceptorAdapter {
 	}
 	
 }
-

+ 16 - 4
src/main/java/com/wxmp/core/listener/InitListener.java

@@ -1,8 +1,20 @@
-/**
- * Copyright &copy; 2017-2018 <a href="http://www.webcsn.com">webcsn</a> All rights reserved.
+/*
+ * FileName:InitListener.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  *
- * @author hermit
- * @date 2018-04-17 10:54:58
  */
 package com.wxmp.core.listener;
 

+ 18 - 0
src/main/java/com/wxmp/core/page/Page.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Page.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.page;
 
 import com.wxmp.wxapi.process.WxMemoryCacheClient;

+ 18 - 0
src/main/java/com/wxmp/core/page/PageInterceptor.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:PageInterceptor.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.page;
 
 import lombok.extern.slf4j.Slf4j;

+ 18 - 0
src/main/java/com/wxmp/core/page/PageResult.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:PageResult.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.page;
 
 import lombok.Data;

+ 18 - 0
src/main/java/com/wxmp/core/page/PageUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:PageUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.page;
 
 import java.lang.reflect.Field;

+ 18 - 0
src/main/java/com/wxmp/core/spring/ExceptionHolder.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:ExceptionHolder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.spring;
 
 import javax.servlet.http.HttpServletRequest;

+ 73 - 56
src/main/java/com/wxmp/core/spring/JsonView.java

@@ -1,63 +1,80 @@
+/*
+ * FileName:JsonView.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.spring;
 
 import java.io.UnsupportedEncodingException;
 
-import net.sf.json.JSONObject;
+import com.alibaba.fastjson.JSONObject;
 
 public class JsonView {
-	
-	//错误代码 0-成功
-	private Integer errcode = 0;
-	
-	// 消息
-	private String message;
-	
-	// 数据
-	private Object data;
-	
-	
-	public JsonView(Integer errcode, String message) {
-		this.errcode = errcode;
-		this.message = message;
-	}
-
-	public JsonView(Integer errcode) {
-		this.errcode = errcode;
-	}
-
-	public JsonView() {
-	}
-
-	public Integer getErrcode() {
-		return errcode;
-	}
-
-	public void setErrcode(Integer errcode) {
-		this.errcode = errcode;
-	}
-
-	public String getMessage() {
-		return message;
-	}
-
-	public void setMessage(String message) {
-		this.message = message;
-	}
-
-	public Object getData() {
-		return data;
-	}
-
-	public void setData(Object data) {
-		this.data = data;
-	}
-	
-	public String toString(){
-		return JSONObject.fromObject(this).toString();
-	}
-	
-	public String toIso8859String() throws UnsupportedEncodingException{
-		return new String(this.toString().getBytes(), "ISO-8859-1");
-	}
-	
+
+    // 错误代码 0-成功
+    private Integer errcode = 0;
+
+    // 消息
+    private String message;
+
+    // 数据
+    private Object data;
+
+    public JsonView(Integer errcode, String message) {
+        this.errcode = errcode;
+        this.message = message;
+    }
+
+    public JsonView(Integer errcode) {
+        this.errcode = errcode;
+    }
+
+    public JsonView() {
+    }
+
+    public Integer getErrcode() {
+        return errcode;
+    }
+
+    public void setErrcode(Integer errcode) {
+        this.errcode = errcode;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public void setMessage(String message) {
+        this.message = message;
+    }
+
+    public Object getData() {
+        return data;
+    }
+
+    public void setData(Object data) {
+        this.data = data;
+    }
+
+    public String toString() {
+        return JSONObject.toJSONString(this);
+    }
+
+    public String toIso8859String() throws UnsupportedEncodingException {
+        return new String(this.toString().getBytes(), "ISO-8859-1");
+    }
+
 }

+ 18 - 0
src/main/java/com/wxmp/core/spring/SpringBeanDefineConfigue.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SpringBeanDefineConfigue.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.spring;
 
 import org.springframework.context.ApplicationListener;

+ 18 - 0
src/main/java/com/wxmp/core/spring/SpringBeanDefineService.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SpringBeanDefineService.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.spring;
 
 /**

+ 18 - 0
src/main/java/com/wxmp/core/spring/SpringContextHolder.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SpringContextHolder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.spring;
 
 import com.wxmp.core.exception.UnexpectedException;

+ 18 - 1
src/main/java/com/wxmp/core/spring/SpringFreemarkerContextPathUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SpringFreemarkerContextPathUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.spring;
 
 import java.io.BufferedReader;
@@ -57,4 +75,3 @@ public class SpringFreemarkerContextPathUtil {
 		return ftlPath;
 	}
 }
-

+ 18 - 0
src/main/java/com/wxmp/core/util/AjaxResult.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:AjaxResult.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import com.wxmp.core.common.Constants;

+ 18 - 0
src/main/java/com/wxmp/core/util/ApplicatonStaticUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:ApplicatonStaticUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.util.HashMap;

+ 17 - 2
src/main/java/com/wxmp/core/util/ArrayUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:ArrayUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/BeanUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:BeanUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.lang.reflect.Field;

+ 18 - 0
src/main/java/com/wxmp/core/util/CacheJ2Utils.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:CacheJ2Utils.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 //
 //import net.oschina.j2cache.CacheChannel;

+ 16 - 4
src/main/java/com/wxmp/core/util/CacheUtils.java

@@ -1,8 +1,20 @@
-/**
- * Copyright &copy; 2017-2018 <a href="http://www.webcsn.com">webcsn</a> All rights reserved.
+/*
+ * FileName:CacheUtils.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  *
- * @author hermit
- * @date 2018-04-17 10:54:58
  */
 package com.wxmp.core.util;
 

+ 18 - 1
src/main/java/com/wxmp/core/util/CalendarUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:CalendarUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.text.ParseException;
@@ -448,4 +466,3 @@ public class CalendarUtil {
 	}
 	
 }
-

+ 17 - 2
src/main/java/com/wxmp/core/util/CharsetUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:CharsetUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/CommonUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:CommonUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.util.UUID;

+ 18 - 0
src/main/java/com/wxmp/core/util/ConvertUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:ConvertUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.BufferedReader;

+ 18 - 1
src/main/java/com/wxmp/core/util/CookieUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:CookieUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import javax.servlet.http.Cookie;
@@ -43,4 +61,3 @@ public class CookieUtil {
     }
 
 }
-

+ 17 - 2
src/main/java/com/wxmp/core/util/DataUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:DataUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/DateUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:DateUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.text.ParseException;

+ 19 - 2
src/main/java/com/wxmp/core/util/DateUtilOld.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:DateUtilOld.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.text.ParseException;
@@ -109,5 +127,4 @@ public class DateUtilOld {
 		return (afterTime - beforeTime) / (1000 * 60 * 60 * 24);
 	}
 	
-}
-
+}

+ 18 - 0
src/main/java/com/wxmp/core/util/Digests.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Digests.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import org.apache.commons.lang3.Validate;

+ 18 - 0
src/main/java/com/wxmp/core/util/Encodes.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Encodes.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.UnsupportedEncodingException;

+ 18 - 0
src/main/java/com/wxmp/core/util/EncryptUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:EncryptUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 

+ 18 - 0
src/main/java/com/wxmp/core/util/Exceptions.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Exceptions.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.PrintWriter;

+ 17 - 2
src/main/java/com/wxmp/core/util/ExcptUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:ExcptUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/FileUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:FileUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.BufferedInputStream;

+ 17 - 2
src/main/java/com/wxmp/core/util/GzipUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:GzipUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/HashUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:HashUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.IOException;

+ 19 - 1
src/main/java/com/wxmp/core/util/HttpClientUtils.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:HttpClientUtils.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.BufferedInputStream;
@@ -1123,4 +1141,4 @@ class WeiXinX509TrustManager implements X509TrustManager {
 		return true;
 	}
 
-}
+}

+ 18 - 0
src/main/java/com/wxmp/core/util/HttpConnectionUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:HttpConnectionUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.IOException;

+ 18 - 0
src/main/java/com/wxmp/core/util/HttpRequestDeviceUtils.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:HttpRequestDeviceUtils.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import javax.servlet.http.HttpServletRequest;

+ 18 - 0
src/main/java/com/wxmp/core/util/HttpUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:HttpUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.IOException;

+ 19 - 1
src/main/java/com/wxmp/core/util/ImageUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:ImageUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.awt.Graphics;
@@ -159,4 +177,4 @@ public class ImageUtil {
 //	public String savePic(MultipartFile file, String uploadUrl) {
 //		return savePic(file, uploadUrl, -1, -1, false);
 //	}
-}
+}

+ 19 - 1
src/main/java/com/wxmp/core/util/ImageUtils.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:ImageUtils.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 import java.awt.Graphics2D;  
 import java.awt.Image;  
@@ -114,4 +132,4 @@ public class ImageUtils {
             e.printStackTrace();  
         }  
     }  
-}  
+}

+ 18 - 0
src/main/java/com/wxmp/core/util/ImgTypeUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:ImgTypeUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 public class ImgTypeUtil {

+ 19 - 1
src/main/java/com/wxmp/core/util/J2CacheUtil.java

@@ -1,4 +1,22 @@
-//package com.wxmp.core.util;
+/*
+ * FileName:J2CacheUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.wxmp.core.util;
 //
 //import net.oschina.j2cache.*;
 //

+ 19 - 2
src/main/java/com/wxmp/core/util/JSONUtil.java

@@ -1,8 +1,26 @@
+/*
+ * FileName:JSONUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.UnsupportedEncodingException;
 
-import net.sf.json.JSONObject;
+import com.alibaba.fastjson.JSONObject;
 
 public class JSONUtil {
 
@@ -10,7 +28,6 @@ public class JSONUtil {
 		try {
 			return new String(jsonObj.toString().getBytes("UTF-8"),"ISO8859-1");
 		} catch (UnsupportedEncodingException e) {
-			// TODO Auto-generated catch block
 			e.printStackTrace();
 		}
 		return "";

+ 18 - 0
src/main/java/com/wxmp/core/util/MD5Util.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:MD5Util.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 

+ 18 - 0
src/main/java/com/wxmp/core/util/MyTrustManager.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:MyTrustManager.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.security.cert.CertificateException;

+ 18 - 0
src/main/java/com/wxmp/core/util/Num62.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Num62.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.math.BigDecimal;

+ 18 - 0
src/main/java/com/wxmp/core/util/PasswordUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:PasswordUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.security.MessageDigest;

+ 18 - 0
src/main/java/com/wxmp/core/util/PropertiesConfigUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:PropertiesConfigUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.BufferedInputStream;

+ 18 - 0
src/main/java/com/wxmp/core/util/PropertiesUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:PropertiesUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import org.apache.commons.lang3.StringUtils;

+ 17 - 2
src/main/java/com/wxmp/core/util/ReflectionUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:ReflectionUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/SecurityUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SecurityUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import com.wxmp.core.util.security.BASE64Encoder;

+ 19 - 1
src/main/java/com/wxmp/core/util/SessionUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SessionUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import com.wxmp.wxcms.domain.SysUser;
@@ -124,4 +142,4 @@ public final class SessionUtil {
 	public void setSession(HttpSession session) {
 		this.session = session;
 	}
-}
+}

+ 18 - 0
src/main/java/com/wxmp/core/util/SpringContextFactory.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SpringContextFactory.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import javax.servlet.ServletContext;

+ 19 - 1
src/main/java/com/wxmp/core/util/SpringUtils.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SpringUtils.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import org.slf4j.Logger;
@@ -103,4 +121,4 @@ public final class SpringUtils {
 		return applicationContext.getAliases(name);
 	}
 
-}
+}

+ 17 - 2
src/main/java/com/wxmp/core/util/StringUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:StringUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/ThreadUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:ThreadUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/UTF8StringHttpMessageConverter.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:UTF8StringHttpMessageConverter.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.IOException;

+ 18 - 1
src/main/java/com/wxmp/core/util/UploadUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:UploadUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.File;
@@ -59,4 +77,3 @@ public class UploadUtil {
 	}
 	
 }
-

+ 18 - 0
src/main/java/com/wxmp/core/util/ValidateUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:ValidateUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.File;

+ 17 - 2
src/main/java/com/wxmp/core/util/WebUtil.java

@@ -1,5 +1,20 @@
-/**
- * 
+/*
+ * FileName:WebUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/XmlUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:XmlUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util;
 
 import java.io.ByteArrayOutputStream;

+ 116 - 76
src/main/java/com/wxmp/core/util/qiniu/QiniuResult.java

@@ -1,84 +1,124 @@
+/*
+ * FileName:QiniuResult.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.qiniu;
 
+import com.alibaba.fastjson.JSONObject;
 import com.qiniu.common.QiniuException;
 import com.qiniu.http.Response;
 
-import net.sf.json.JSONObject;
-
 public class QiniuResult {
 
-	private int code;//状态码 200表示成功
-	private String msg;//信息
-	private double duration;//耗时
-	private String address;//服务器ip地址
-	private String hash;
-	private String key;
-	private String contentType;
-	private String url;//图片调用地址
-	public int getCode() {
-		return code;
-	}
-	public void setCode(int code) {
-		this.code = code;
-	}
-	public String getMsg() {
-		return msg;
-	}
-	public void setMsg(String msg) {
-		this.msg = msg;
-	}
-	public double getDuration() {
-		return duration;
-	}
-	public void setDuration(double duration) {
-		this.duration = duration;
-	}
-	public String getAddress() {
-		return address;
-	}
-	public void setAddress(String address) {
-		this.address = address;
-	}
-	public String getHash() {
-		return hash;
-	}
-	public void setHash(String hash) {
-		this.hash = hash;
-	}
-	public String getKey() {
-		return key;
-	}
-	public void setKey(String key) {
-		this.key = key;
-	}
-	public String getContentType() {
-		return contentType;
-	}
-	public void setContentType(String contentType) {
-		this.contentType = contentType;
-	}
-	public String getUrl() {
-		return url;
-	}
-	public void setUrl(String url) {
-		this.url = url;
-	}
-	
-	public static QiniuResult forBoject(Response res) throws QiniuException{
-		QiniuResult result=new QiniuResult();
-		result.setAddress(res.address);
-		result.setCode(res.statusCode);
-		result.setContentType(res.contentType());
-		result.setDuration(res.duration);
-		JSONObject json=JSONObject.fromObject(res.bodyString());
-		
-		result.setHash(json.getString("hash"));
-		result.setKey(json.getString("key"));
-		
-		result.setMsg(res.error);
-		//
-		result.setUrl("http://oyeve9iiu.bkt.clouddn.com/"+json.getString("key"));
-		return result;
-	}
-	
+    private int code;// 状态码 200表示成功
+
+    private String msg;// 信息
+
+    private double duration;// 耗时
+
+    private String address;// 服务器ip地址
+
+    private String hash;
+
+    private String key;
+
+    private String contentType;
+
+    private String url;// 图片调用地址
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public double getDuration() {
+        return duration;
+    }
+
+    public void setDuration(double duration) {
+        this.duration = duration;
+    }
+
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    public String getHash() {
+        return hash;
+    }
+
+    public void setHash(String hash) {
+        this.hash = hash;
+    }
+
+    public String getKey() {
+        return key;
+    }
+
+    public void setKey(String key) {
+        this.key = key;
+    }
+
+    public String getContentType() {
+        return contentType;
+    }
+
+    public void setContentType(String contentType) {
+        this.contentType = contentType;
+    }
+
+    public String getUrl() {
+        return url;
+    }
+
+    public void setUrl(String url) {
+        this.url = url;
+    }
+
+    public static QiniuResult forBoject(Response res) throws QiniuException {
+        QiniuResult result = new QiniuResult();
+        result.setAddress(res.address);
+        result.setCode(res.statusCode);
+        result.setContentType(res.contentType());
+        result.setDuration(res.duration);
+        JSONObject json = JSONObject.parseObject(res.bodyString());
+
+        result.setHash(json.getString("hash"));
+        result.setKey(json.getString("key"));
+
+        result.setMsg(res.error);
+        //
+        result.setUrl("http://oyeve9iiu.bkt.clouddn.com/" + json.getString("key"));
+        return result;
+    }
+
 }

+ 118 - 101
src/main/java/com/wxmp/core/util/qiniu/QiniuUtil.java

@@ -1,121 +1,138 @@
+/*
+ * FileName:QiniuUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.qiniu;
 
 import java.io.File;
-import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 
 import org.apache.commons.io.FileUtils;
-import org.apache.commons.io.IOUtils;
 import org.apache.log4j.Logger;
 
-import com.google.gson.Gson;
+import com.alibaba.fastjson.JSONObject;
 import com.qiniu.common.QiniuException;
 import com.qiniu.common.Zone;
 import com.qiniu.http.Response;
 import com.qiniu.storage.Configuration;
 import com.qiniu.storage.UploadManager;
-import com.qiniu.storage.model.DefaultPutRet;
 import com.qiniu.util.Auth;
 
+public class QiniuUtil {
 
-import net.sf.json.JSONObject;
+    private static Logger logger = Logger.getLogger(QiniuUtil.class);
 
-public class QiniuUtil {
+    // Zone对象
+    /**
+     * Zone.zone0() =>华东
+     * Zone.zone1() =>华北
+     * Zone.zone2() =>华南
+     * Zone.zoneNa0() =>北美
+     */
+    private static Zone zone = Zone.zone1();
+
+    private static UploadManager uploadManager = new UploadManager(new Configuration(zone));
+
+    private static String ak = "emLrorprCtWbof9kWlr6nD4Vkb_wB934WxqbCDzc";
+
+    private static String sk = "BTnrYlSVC78t38Ivnmf4tIbvLSsbbGEDIc1T2Be";
+
+    private static String bt = "e-smart1";
+
+    /**
+     * 
+    *
+    * @Title: uploadByFile 
+    * @Description: TODO 上传文件到七牛 
+    * @param @param file
+    * @param @return    设定文件 
+    * @return QiniuResult    返回类型 
+    * @throws
+     */
+    public static QiniuResult uploadByFile(File file) {
+
+        try {
+
+            return uploadByByte(FileUtils.readFileToByteArray(file));
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+        return null;
+    }
+
+    /**
+     * 
+    *
+    * @Title: uploadByByte 
+    * @Description: TODO 上传数组到七牛
+    * @param @param bte
+    * @param @return    设定文件 
+    * @return QiniuResult    返回类型 
+    * @throws
+     */
+    public static QiniuResult uploadByByte(byte[] bte) {
+        // 默认不指定key的情况下,以文件内容的hash值作为文件名
+        String key = null;
+        Auth auth = Auth.create(ak, sk);
+        String upToken = auth.uploadToken(bt);
+        try {
+            Response response = uploadManager.put(bte, key, upToken);
+            // 解析上传成功的结果
+            logger.info("qiniu Response body=> " + response.bodyString());
+            return QiniuResult.forBoject(response);
+        } catch (QiniuException e) {
+            e.getStackTrace();
+            logger.error(e.getMessage(), e);
+        }
+        return null;
+    }
+
+    /**
+     * 
+    *
+    * @Title: uploadByInputStream 
+    * @Description: TODO 上传文件流到七牛 
+    * @param @param inp
+    * @param @return    设定文件 
+    * @return QiniuResult    返回类型 
+    * @throws
+     */
+    public static QiniuResult uploadByInputStream(InputStream inp) {
+
+        // 默认不指定key的情况下,以文件内容的hash值作为文件名
+        String key = null;
+        Auth auth = Auth.create(ak, sk);
+        String upToken = auth.uploadToken(bt);
+        try {
+            Response response = uploadManager.put(inp, key, upToken, null, null);
+            // 解析上传成功的结果
+            logger.info("qiniu Response body=> " + response.bodyString());
+            return QiniuResult.forBoject(response);
+        } catch (QiniuException e) {
+            e.getStackTrace();
+            logger.error(e.getMessage(), e);
+        }
+        return null;
+    }
+
+    public static void main(String[] args) {
+        File file = new File("D:\\test.jpg");
+        System.out.println(JSONObject.toJSON(uploadByFile(file)).toString());
+    }
 
-	private static Logger logger = Logger.getLogger(QiniuUtil.class);
-	//Zone对象
-	/**
-	 * Zone.zone0() =>华东
-	 * Zone.zone1() =>华北
-	 * Zone.zone2() =>华南
-	 * Zone.zoneNa0() =>北美
-	 */
-	private static Zone zone= Zone.zone1();
-	
-	private static UploadManager uploadManager = new UploadManager(new Configuration(zone));
-	
-	private static String ak="emLrorprCtWbof9kWlr6nD4Vkb_wB934WxqbCDzc";
-	private static String sk="BTnrYlSVC78t38Ivnmf4tIbvLSsbbGEDIc1T2Be";
-	private static String bt="e-smart1";
-	
-	/**
-	 * 
-	*
-	* @Title: uploadByFile 
-	* @Description: TODO 上传文件到七牛 
-	* @param @param file
-	* @param @return    设定文件 
-	* @return QiniuResult    返回类型 
-	* @throws
-	 */
-	public static QiniuResult uploadByFile(File file){
-		
-		
-		try {
-			
-			return uploadByByte(FileUtils.readFileToByteArray(file));
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-		return null;
-	}
-	/**
-	 * 
-	*
-	* @Title: uploadByByte 
-	* @Description: TODO 上传数组到七牛
-	* @param @param bte
-	* @param @return    设定文件 
-	* @return QiniuResult    返回类型 
-	* @throws
-	 */
-	public static QiniuResult uploadByByte(byte[] bte){
-		//默认不指定key的情况下,以文件内容的hash值作为文件名
-		String key = null;
-		Auth auth = Auth.create(ak, sk);
-		String upToken = auth.uploadToken(bt);
-		try {
-		    Response response = uploadManager.put(bte, key, upToken);
-		    //解析上传成功的结果
-		    logger.info("qiniu Response body=> "+response.bodyString());
-		    return QiniuResult.forBoject(response);
-		} catch (QiniuException e) {
-			e.getStackTrace();
-			logger.error(e.getMessage(),e);
-		}
-		return null;
-	}
-	/**
-	 * 
-	*
-	* @Title: uploadByInputStream 
-	* @Description: TODO 上传文件流到七牛 
-	* @param @param inp
-	* @param @return    设定文件 
-	* @return QiniuResult    返回类型 
-	* @throws
-	 */
-	public static QiniuResult uploadByInputStream(InputStream inp){
-		
-		//默认不指定key的情况下,以文件内容的hash值作为文件名
-		String key = null;
-		Auth auth = Auth.create(ak, sk);
-		String upToken = auth.uploadToken(bt);
-		try {
-		    Response response = uploadManager.put(inp, key, upToken,null,null);
-		    //解析上传成功的结果
-		    logger.info("qiniu Response body=> "+response.bodyString());
-		    return QiniuResult.forBoject(response);
-		} catch (QiniuException e) {
-			e.getStackTrace();
-			logger.error(e.getMessage(),e);
-		}
-		return null;
-	}
-	public static void main(String[] args) {
-		File file=new File("D:\\test.jpg");
-		System.out.println(JSONObject.fromObject(uploadByFile(file)).toString());
-	}
-	
 }

+ 18 - 0
src/main/java/com/wxmp/core/util/security/BASE64Encoder.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:BASE64Encoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.security;
 
 import java.io.ByteArrayInputStream;

+ 19 - 1
src/main/java/com/wxmp/core/util/security/BouncyCastleProvider.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:BouncyCastleProvider.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.security;
 
 import java.security.Provider;
@@ -618,4 +636,4 @@ public class BouncyCastleProvider extends Provider {
         put("CertPathBuilder.PKIX ValidationAlgorithm", "RFC2459");
         put("CertStore.Collection", "org.bouncycastle.jce.provider.CertStoreCollectionSpi");
     }
-}
+}

+ 18 - 0
src/main/java/com/wxmp/core/util/security/Hex.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:Hex.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.security;
 
 import java.io.UnsupportedEncodingException;

+ 18 - 0
src/main/java/com/wxmp/core/util/security/RSAKeys.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:RSAKeys.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.security;
 
 import java.io.IOException;

+ 18 - 0
src/main/java/com/wxmp/core/util/security/RSASignatureTools.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:RSASignatureTools.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.security;
 
 import java.io.BufferedWriter;

+ 17 - 2
src/main/java/com/wxmp/core/util/security/SecurityCoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:SecurityCoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/security/coder/DESCoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:DESCoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security.coder;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/security/coder/HmacCoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:HmacCoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security.coder;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/security/coder/MDCoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:MDCoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security.coder;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/security/coder/RSACoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:RSACoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security.coder;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/security/coder/SHACoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:SHACoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security.coder;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/security/http/HTTPSCoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:HTTPSCoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security.http;
 

+ 17 - 2
src/main/java/com/wxmp/core/util/security/http/HTTPSPKCSCoder.java

@@ -1,5 +1,20 @@
-/**
- * 2011-01-11
+/*
+ * FileName:HTTPSPKCSCoder.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
  */
 package com.wxmp.core.util.security.http;
 

+ 18 - 0
src/main/java/com/wxmp/core/util/wx/HTTPResultXml.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:HTTPResultXml.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.wx;
 
 import javax.xml.bind.annotation.XmlElement;

+ 18 - 0
src/main/java/com/wxmp/core/util/wx/RequestHandler.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:RequestHandler.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.wx;
 
 

+ 18 - 1
src/main/java/com/wxmp/core/util/wx/SignUtil.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:SignUtil.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.wx;
 
 import java.security.MessageDigest;
@@ -86,4 +104,3 @@ public class SignUtil {
     }
 	
 }
-

+ 18 - 12
src/main/java/com/wxmp/core/util/wx/TenpayUtil2.java

@@ -1,3 +1,21 @@
+/*
+ * FileName:TenpayUtil2.java 
+ * <p>
+ * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (794890569@qq.com)</a>.
+ * <p>
+ * Licensed under the GNU General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p>
+ * http://www.gnu.org/licenses/gpl-3.0.html
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 package com.wxmp.core.util.wx;
 
 import java.io.ByteArrayInputStream;
@@ -331,15 +349,3 @@ public class TenpayUtil2 {
     
 	
 }
-	
-	
-
-
-
-
-
-
-
-
-
-

+ 0 - 0
src/main/java/com/wxmp/core/util/wx/WxUtil.java


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff