`
qingwei201314
  • 浏览: 163408 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
1.在需要国际化的页面中加入以下内容: <fmt:setLocale value="${cookie['locale'].value }" /><fmt:setBundle basename="message" />   2.在classes路径下加入资源文件: message.properties message_zh_CN.properties   3.在需更换语言的地方,将语言值写入Cookie中:   Cookie cookie = new Cookie("locale", locale ...
官网: http://jqueryvalidation.org 需引入两个js文件: <script type="text/javascript" src="${util.path}/js/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="${util.path}/js/validate/jquery.validate.js"></script>   1.ajax调用后台的 ...
iptables -I INPUT -p tcp --dport 8080 -j ACCEPT iptables -I OUTPUT -p tcp --sport 8080 -j ACCEPT   给指定ip开启某端口访问权限: iptables -I INPUT -p tcp --dport 55618  -j DROP iptables -I INPUT -s 115.28.139.46 -p tcp --dport 55618  -j ACCEPTiptables -I INPUT -p tcp --dport 2181 -j DROP iptables -I INPUT -s ...
@Service("codBillingSyncService")public class CodBillingSyncServiceImpl implements ICodBillingSyncService { /**  * 用于管理线程的线程池  */ static Integer corePoolSize = Integer.parseInt(Property.getProperty("COD_TO_BIL_COREPOOLSIZE")); static Integer maximumPoolSize = Integer.parseInt(Pr ...
目 录1 前言.......................................................... 51.1 目的.........................................................51.2 范围.........................................................51.3 版权声明.....................................................51.4 参考资料.................................. ...
1.只需引入jackson-mapper-asl(org.codehaus.jackson)包后,在controller中增加此方法,即可实现rest:   import im.gsj.about.vo.RestVo; import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestMethod;import org.spri ...
hibernate的查询器Criteria可以生成hql, 注意要收集参数,查询时用到:  public String getCriteriaSql(Criteria criteria) {  CriteriaImpl criteriaImpl = (CriteriaImpl) criteria;//转型     SessionImplementor session = criteriaImpl.getSession();//获取SESSION     SessionFactoryImplementor factory = session.getFactory();//获取FACTORY   ...
1.页面代码: //加载更多页面        $(document).ready(function() {      var pageNo=2;   //加载更多页的页码      var result="";  //返回的页面         $(window).scroll(function(){          var scrollTop = $(this).scrollTop();    var windowHeight = $(this).height();          var scrollHeight = $(document).height();  ...
网站流量统计:http://www.cnzz.com/
1.修改conf/server.xml中的如下内容: <Connector port="8080" protocol="HTTP/1.1"               connectionTimeout="20000"               maxThreads="2"               acceptCount="10"               maxConnections ="100"               redirectPort=&q ...
1.将a.txt,iptab.sh两个文件放到指定目录下 2.a.txt中是需要开启的端口,其余端口将被禁用  
1.yum install libevent-devel 2.tar -zxvf memcached-1.x.x.tar.gz cd memcached-1.x.x3.cd memcached-1.x.x4../configure --prefix=/usr/local/memcached-1.4.55.make && make test 6.make install7.memcached -d -m 300 -u root -l 192.168.0.244 -p 13800 -c 512 -P /usr/local/memcached-1.4.5/pid_files/mem ...
drbd heartbeat 安装 linux centos drbd heartbeat 安装 linux centos drbd heartbeat 安装 linux centos drbd heartbeat 安装 linux centos drbd heartbeat 安装 linux centos
1.准备5台机器,ip分别为: 192.168.77.46(mgm) 192.168.77.48(data) 192.168.77.54(data) 192.168.77.55(sql) 192.168.77.56(sql) 2.首先安装192.168.77.55 shell> groupadd mysqlshell> useradd -g mysql mysqlshell> cd /var/tmpshell> tar -C /usr/local -xzvf mysql-cluster-gpl-7.2.14-linux2.6.tar.gzshell> ...
运维 运维计划 运维内容   用project 2003可以打开
Global site tag (gtag.js) - Google Analytics