Skip to content

Commit

Permalink
Merge branch '2.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
fengwenyi committed May 31, 2020
2 parents a085472 + 51bfad9 commit 66c2530
Show file tree
Hide file tree
Showing 24 changed files with 68 additions and 639 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Erwin Feng
Copyright (c) 2020 Erwin Feng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 1 addition & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.fengwenyi</groupId>
<artifactId>JavaLib</artifactId>
<version>2.0.3.RELEASE</version>
<version>2.0.4.RELEASE</version>
<packaging>jar</packaging>
<name>JavaLib</name>
<description>JAVA开发常用工具集</description>
Expand Down Expand Up @@ -55,13 +55,6 @@
<scope>provided</scope>
</dependency>

<!-- 用于JSON的封装和解析 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>

<!-- 默认的jackson支持 -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand All @@ -70,14 +63,6 @@
<scope>provided</scope>
</dependency>

<!-- 网络请求支持 -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${okhttp.version}</version>
<!-- <scope>provided</scope> -->
</dependency>

<!-- 图片压缩 Google -->
<dependency>
<groupId>net.coobird</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Wenyi Feng
* @since 2018-10-28
*/
public class Charset {
public class CharsetConstant {

/**
* UTF-8
Expand Down
20 changes: 0 additions & 20 deletions src/main/java/com/fengwenyi/javalib/constant/ContentType.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Wenyi Feng
* @since 2018-10-16
*/
public class EncryptionType {
public class EncryptionTypeConstant {

/**
* md5
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.fengwenyi.javalib.constant;

/**
* Http header key
* @author Erwin Feng
* @since 2020/5/11 12:11 上午
*/
public class HttpHeaderKeyConstant {

/** Content-Type */
public static final String KEY_CONTENT_TYPE = "Content-Type";

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author Erwin Feng
* @since 2019-03-14 10:58
*/
public class LogLevel {
public class LogLevelConstant {

/** 各级包括自定义级别 */
public static final String ALL = "ALL";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.fengwenyi.javalib.constant;

/**
* Http Media Type
* @author Erwin Feng
* @since 2020/5/11 12:08 上午
*/
public class MediaTypeConstant {

/** application/json */
public static final String APPLICATION_JSON_VALUE = "application/json";

/** application/...form... */
public static final String APPLICATION_FORM_VALUE = "application/x-www-form-urlencoded;";

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Wenyi Feng
* @since 2018-09-25
*/
public class RequestMethod {
public class RequestMethodConstant {

/**
* get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Wenyi Feng
* @since 2018-10-28
*/
public class URL {
public class URLConstant {

/**
* 获取ip地址的信息的uri
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Wenyi Feng
* @since 2018-11-17
*/
public class UserAgent {
public class UserAgentConstant {

private static final String MAC_ = "Mozilla/5.0 (Macintosh; PPC Mac OS X) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1";

Expand Down
14 changes: 0 additions & 14 deletions src/main/java/com/fengwenyi/javalib/util/BeanUtils.java

This file was deleted.

61 changes: 0 additions & 61 deletions src/main/java/com/fengwenyi/javalib/util/ExceptionUtils.java

This file was deleted.

98 changes: 0 additions & 98 deletions src/main/java/com/fengwenyi/javalib/util/HttpUtils.java

This file was deleted.

Loading

0 comments on commit 66c2530

Please sign in to comment.