- 博客(60)
- 收藏
- 关注
转载 eclipse下的tomcat内存设置大小
eclipse下的tomcat内存设置大小在eclipse中设置,居然可以了,设置步骤如下:1.点击eclipse上的debug图标旁边的下拉箭头2.然后选择Run Configurations,3.系统弹出设置tomcat配置页面,在Argument中末尾添加参数中的VM arguments中追加:-Xms256M -Xmx512M -XX:P
2014-07-06 23:29:55
181
转载 Java 5 的新特性
自己学习时简单总结的Java5和Java6的新特性:Java5:1、泛型 Generics:引用泛型之后,允许指定集合里元素的类型,免去了强制类型转换,并且能在编译时刻进行类型检查的好处。Parameterized Type作为参数和返回值,Generic是vararg、annotation、enumeration、collection的基石。A、类型安全抛弃List、Map,
2014-06-22 08:22:36
184
转载 JSP EL
Jsp EL语法(转)例:${sessionScope.user.sex}所有EL都是以 ${ 为起始、以} 为结尾的。上述EL范例的意思是:从Session取得用户的性别。如果使用之前JSP代码的写法如下:User user = (User)session.getAttribute(”user”);String sex = user.getSex( );%>
2014-05-27 22:29:44
278
转载 The difference between quick viewer and query
Quick Viewer和SAP Query的差别 QuickViewer 和 SAP Query 是两种不同的创建SAP报表的工具,是SAP专门提供给没有任何ABAP背景的用户使用的。当然懂得ABAP的人也可以使用。他们有许多的不同之处1)QuickViewer只能用来创建最基本的报表,而SAP Query可以用来创建各式报表(统计,排序等功能)2)和SAP Query相比,在
2014-02-21 13:09:51
272
转载 the difference between SAP quickview and query
Quick Viewer和SAP Query的差别 QuickViewer 和 SAP Query 是两种不同的创建SAP报表的工具,是SAP专门提供给没有任何ABAP背景的用户使用的。当然懂得ABAP的人也可以使用。他们有许多的不同之处1)QuickViewer只能用来创建最基本的报表,而SAP Query可以用来创建各式报表(统计,排序等功能)2)和SAP Query相比,在
2014-02-21 13:08:39
213
原创 Config path in Mac
How to config the path in Mac OS, just want to share some comments here,1. General it is Bshell in Mac OS. so there is a ~/.bash_profile in the user home directory.2. Add the path content in this
2014-01-05 21:54:34
206
转载 职业生涯不能有的致命想法
1、总觉得自己不够好 这种人虽然聪明、有历练,但是一旦被提拔,反而毫无自信,觉得自己不胜任。此外,他没有往上爬的野心,总觉得自己的职位已经太高,或许低一两级可能还比较适合。这种自我破坏与自我限制的行为,有时候是无意识的。但是,身为企业中、高级主管,这种无意识的行为却会让企业付出很大的代价。 2、非黑即白看世界 这种人眼中的世界非黑即白。他们相信,一切事物都
2012-02-20 09:51:39
150
转载 Java面试题
<br /> 今天被架构师问了一连串的问题,估计问了有一个多小时吧,有很多问题都答不上来,突然发现原来自己没有掌握的知识太多了,原来我觉得技术是用来解决问题的,而不是用来研究的,但现在觉得要更快捷的解决问题,还得好好的研究他们的原理,凡事多问个“他的原理是什么,底层是怎么实现的”,回来好好整理了一下知识点,我想就每一个知识点展开学习。<br /> 同时我也发现一个学习的好办法,当你觉得你学习没有什么方向的时候,可以去找公司的牛人聊聊天,相信你会有很大的收获的。 JDK1
2011-04-24 21:23:00
167
原创 error message and approach for struts2
error msaage and fix approach for struts2
2011-04-21 22:28:00
213
转载 difference between synchronized and ThreadLocal
ThreadLoal and Synchronized
2011-01-12 18:08:00
187
原创 Reset password for Oracle user and change the password mandatory
Oracle reset password; expire
2010-11-22 14:05:00
413
原创 parse data file into oracle using procedure
Oracle procedure, data file import
2010-11-15 14:58:00
177
原创 difference between RequestDispatcher.forward() and reponse.sendRedirect()
difference between RequestDispatcher.forward() and reponse.sendRedirect()
2010-08-30 16:02:00
308
转载 Eclipse中启动Tomcat出错问题
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:
2010-07-06 14:16:00
206
原创 Java Web Start 配置
Java Web Start 简介如果没有这些合适的工具,不论用什么语言,传统桌面应用程序的部署和维护对于开发人员都可能是主要的头疼问题。即使是最有效的支持部门,一想到发布新版本的软件时必须检查更新每台工作站,也不能不让他们感到头痛。为了方便 Java 开发人员的分发和维护需求,Sun Microsystems(已经被Oracle合并) 引入了 Java Web Start。这一技术很大程度上
2010-04-18 23:39:00
546
转载 Linux 输入输出重定向
linux重定向 I/O重定向详解及应用实例 1、 基本概念(这是理解后面的知识的前提,请务必理解) a、 I/O重定向通常与 FD有关,shell的FD通常为10个,即 0~9; b、 常用FD有3个,为0(stdin,标准输入)、1(stdout,标准输出)、2(stderr,标准错误输出),默认与keyboard、monitor、monitor有关; c、 用 d、
2010-03-08 11:01:00
324
翻译 the auto run configuration in ubuntu
In Ubuntu os:in /etc/rc2.d directory, 里面有很多文件,找到形式为Sxyapache2、Sxymysql、Sxymysql-ndb、Sxymysql-ndb-mgm的文件,其中S代表自动启动,xy是一个两位数字,将S改成大写的K,将xy改成100-xy的值,以后它们就不会自动启动了,如果以后希望改为自动启动,可以再把它们的名字改回来。
2010-01-27 23:59:00
254
原创 How to be a good manager?
I was thinking on this question a whole day, how to be a good manager? I think the basic ability or responsibility of a good manager should be like the below:1. A good ability of finding a good huma
2009-12-13 20:25:00
633
转载 Checked Exception VS unchecked Exception
异常的概念 任何的异常都是Throwable类(为何不是接口??),并且在它之下包含两个字类Error / Exception,而Error仅在当在Java虚拟机中发生动态连接失败或其它的定位失败的时候,Java虚拟机抛出一个Error对象。典型的简易程序不捕获或抛出Errors对象,你可能永远不会遇到需要实例化Error的应用,那就让我们关心一下Exception。
2009-08-10 10:03:00
299
转载 JSF 获得 JSP的常规对象
request:FacesContext context = FacesContext.getCurrentInstance(); ExternalContext ec = context.getExternalContext(); HttpServletRequest request = (HttpServletRequest) ec.getRequest();session:Faces
2009-07-29 23:33:00
168
原创 Error message summary for JSF
1. Error Message: java.lang.RuntimeException: Cannot find FacesContext at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855) at javax.faces.webapp.U
2009-06-24 23:59:00
297
原创 如何查看本机IE的代理服务器地址
XP 操作系统,在命令行中,输入以下命令 netstat -ano Proto Local Address Foreign Address State PID TCP 10.158.139.90:2182 10.158.140.91:80 ESTABLISHED
2009-02-09 14:24:00
4992
4
原创 Replace string using regular expression in java
We can using regular expression to replace some char in java. The below is aexample for remove blank and number and Punctuation.public class Www { /** * Description: * Conditi
2008-07-29 23:38:00
271
原创 A Runtime method that can be called when JVM terminate
A Runtime method that can be called when JVM terminateUse this method, you can do some finalizing action when the application terminate.The below is a example:package com.wt.java;public class Shutdown
2008-07-22 20:22:00
239
原创 servlet receive a object from client
@Override protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { System.out.println("----- in the server side -----"); Servle
2008-05-29 14:05:00
272
原创 send a request to servlet ( through object or http parameter )
send a java object to servlet: _con.setRequestProperty("Content-type","application/octet-stream"); OutputStream outStream = _con.getOutputStream(); ObjectOutputStream objStream = ne
2008-05-29 14:04:00
290
原创 jboss scheduler
jboss的schedule 是采用了单例模式,即一个定时执行的job在服务器上仅仅存在一个instance.下面给出一个简单的例子.the java file for schedule job:package com.ww.test;import java.util.Date;import org.jboss.varia.scheduler.Schedulable;
2008-03-27 11:09:00
354
原创 a shell script of auto login through ssh
#!/usr/bin/expect -fset timeout 30spawn ssh c0336001@kabta.corp.apple.comexpect "Password:"send "apple123/r"expect "c0336001"send "su - icdbd/r"expect "Password:"send "06icdbd/r"expe
2008-03-21 15:25:00
470
原创 the summary of thread
the summary of java thread :1. the lifecyle of thread :一个具有生命的线程,总是处于这五种状态之一:a.创建状态使用new运算符创建一个线程后,该线程仅仅是一个空对象,系统没有分配资源,称该线程处于创建状态(new thread)b.可运行状态使用start()方法启动一个线程后,系统为该线程分配了除CPU外的所需资源,
2008-03-21 09:23:00
235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人