Wesley13 Wesley13
3年前
java验证
packagecom.lyqc.utils;importorg.apache.commons.lang.StringUtils;publicclassValidUtils{privatestaticfinalStringmobile"^(13|15|18|17|16)\09\{9}$";privatestati
Easter79 Easter79
3年前
tomcat Nio设置
<Connector port"8080" protocol"org.apache.coyote.http11.Http11NioProtocol"               connectionTimeout"20000" keepAliveTimeout"1" redirectPort"8443"       
Stella981 Stella981
3年前
Map转为Bean,注册String转Date
importjava.text.ParseException;importjava.text.SimpleDateFormat;importjava.util.Map;importorg.apache.commons.beanutils.ConversionException;importo
Wesley13 Wesley13
3年前
Java 两次MD5
导入:importorg.apache.commons.codec.digest.DigestUtils;  代码:publicstaticStringmd5(Stringsrc){returnDigestUtils.md5Hex(src);}privatestat
Easter79 Easter79
3年前
Struts
//导包//配置WEB.XML    <filter        <filternamestruts2</filtername        <filterclassorg.apache.struts2.dispatcher.ng.filter        .StrutsPrepar
Wesley13 Wesley13
3年前
MyBatis 问题
nestedexceptionisorg.apache.ibatis.reflection.ReflectionException:Thereisnogetterforpropertynamed in'classjava.lang.String'Mapper.xml是这样的<selectid"findPl
Stella981 Stella981
3年前
Spark用dataframe操作ES
直接上代码:packagecom.suning.scdc.hspark.goods.testimportscala.collection.Seqimportscala.collection.mutable.LinkedListimportorg.apache.spark.SparkConf
Easter79 Easter79
3年前
Thrift
安装thriftmacbrewinstallthrift安装完成检查thriftversion新建maven项目pom.xml<dependencies<dependency<groupIdorg.apache.th
Stella981 Stella981
3年前
Shiro rememberME 自定义rememberMeManager 不能使用
cookierememberMeCookie  org.apache.shiro.web.servlet.SimpleCookie rememberMeCookie.name  rememberMerememberMeCookie.httpOnly  truerememberMeCookie.maxAge  2592000rem
Stella981 Stella981
3年前
HttpClient4.3.6学习过程——1
    首先先去官网下载所需jar包http://hc.apache.org/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fhc.apache.org%2F)。目前最新版是httpclient4.4(20141217),我使用的是4.3.6版本。官网下是有教程的,但是明显教程很