Java utils for convenience in development server app, especially using spring. Many libs such as javax.servlet-api, org.mongodb.bson, spring-data-redis, fastjson,jackson, msgpack, lombok, commons-lang3, org.slf4j are involved and are depended.
mvn package install
in your pom.xml
<dependency>
<groupId>com.github.rwsbillyang</groupId>
<artifactId>serverUtils</artifactId>
<version>1.0.0</version>
</dependency>
or build.gradle:
compile 'com.github.rwsbillyang:serverUtils:1.0.0'
format Timestamp, Date, DateTime, parse String using org.apache.commons.lang3.time.FastDateFormat
get address(province, city etc.) by querying http://ip.taobao.com/service/getIpInfo.php
, and mutual convert between ip address and long number.
json util class using jackson
use HttpServletRequest to check browser type , url/uri with query parameters, and ip support reverse proxy
Wechat mini program
redis serializer such as NullValue, ObjectId