`
albert0312
  • 浏览: 29534 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表

tomcat_log4j

# This is the configuring for logging displayed in the Application Server log4j.rootCategory=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.ap ...
  public static Integer recursiveBinarySearch(Integer[] array, int startIndex, int endIndex, int number) { if (startIndex > endIndex) { return null; } int midIndex = (startIndex + endIndex) / 2; if (array[midIndex] == number) { return midIndex; } else if (array[midIndex] &g ...
  // 从小到大 public static Integer[] bubbleSort(Integer[] array) { for (int i = 0; i < array.length; i++) { for (int j = i + 1; j < array.length; j++) { if (array[i] > array[j]) { int temp = array[i]; array[i] = array[j]; array[j] = temp; } } } re ...
这个T<D的问题之前做毕业设计就碰到的,搞了半天都没找到原因,最近做数据同步的时候又遇到如此悲剧的情况,又搞了半天没结果,今天RP 爆发终于知道原因的,原来当客户端数据量很大的时候,tomcat本身对debug模式有默认内存设置,当您程序所占内存超过tomcat默认设置的数值时(这里由于系统做了大量数据表缓存),在用Eclipse调试程序的时候就无法debug, 解决方法就是设高tomcat内存容量1、Eclipse安装tomcat-plugin设置方法:window-preferences-tomcat-jvm settings-append jvm parameter -add-Xms ...
一,servlet容器如何同时处理多个请求。 Servlet采用多线程来处理多个请求同时访问,Servelet容器维护了一个线程池来服务请求。线程池实际上是等待执行代码的一组线程叫做工作者线程(Worker Thread),Servlet容器使用一个调度线程来管理工作者线程(Dispatcher Thread)。 当容器收到一个访问Servlet的请求,调度者线程从线程池中选出一个工作者线程,将请求传递给该线程,然后由该线程来执行Servlet的service方法。当这个线程正在执行的时候,容器收到另外一个请求,调度者线程将从池中选出另外一个工作者线程来服务新的请求,容器并不关系这个请求是否 ...
幽灵引用 -- 好强大的文章 http://www.iteye.com/topic/401478   ThreadLocal -- 非常全面解释了这个怪东东 http://www.iteye.com/topic/103804   Concurrent -- 并发啊 http://www.iteye.com/topic/363625   泛型 -- 泛型一箩筐 http://www.java3z.com/cwbwebhome/article/article5/tiger2.jsp   Comparator和Comparable -- 这个怪叔叔不算高级了,但是可以深入的 ...
Apache的HTTPD是目前比较受欢迎的网站服务器软件,它不但功能强大,而且完全免费,并且支持市场上流行的各种操作系统(Windows,Linux,Mac os)。同时对于Java Servlet/JSP的支持,通常也会使用同样Apache出品的Tomcat。 Tomcat除了支持Java Servl ...
ps:http://ll-feng.iteye.com/blog/246707--------UL-form ps:http://struts.apache.org/2.x/docs/tag-reference.html-------官方Tag文档   ps:http://wiki.javascud.org/display/ww2cndoc/Tags----------当手册查询   ps:http://blog.csdn.net/struts2/archive/2007/08/01/1721752.aspx-------struts2的总览   ps:http://www.laoer.com/ ...
ps:http://www.ijavascript.cn/
1:在action中定义的变量,在jsp页面中显示用:<s:property value="变量名" /> 2:在页面中实现自动增加的序号用iterator的statuts的index属性 eg: <s:iterator value="#request.inOutAccountList" id="data" status="listStat&q ...
配置好MAVEN_HOME,JAVA_HOME 这个就不废话了:P ------------------------------------------------------------------------------------------ 步骤:(以下步均为在命令行的输入) ------------------------------------------------------------------------------------------ 第一步 通过APPFUSE创建基于Struts 2 Basic的项目: mvn archetype:create -Darchety ...
一、"#"的用法    1、 访问OGNL上下文和Action上下文,#相当于ActionContext.getContext();下表有几个ActionContext中有用的属性:          parameters  包含当前HTTP请求参数的Map #parameters.id[0]作用相当于request.getParameter("id")        request 包含当前HttpServletRequest的属性(attribute)的Map #request.userName相当于request.getAttribute( ...
Global site tag (gtag.js) - Google Analytics