java字符串连接一般有三种方式:+ StringBuilder StringBuffer。
StringBuffer是线程安全的;
StringBuilder不是线程安全的,但性能稍好一些,在不需要线程安全的字符串连接,尽量使用StringBuilder。(大部分情[......]
月度归档:2015 年二月
Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
在部署的时候出现Server Tomcat v6.0 Server at localhost was unable to start w[......]
Eclipse中通过Tomcat运行J2EE项目java.lang.OutOfMemoryError: PermGen space的解决方案
Eclipse中通过Tomcat运行J2EE项目java.lang.OutOfMemoryError: PermGen space的解决方案:
今天运行J2EE项目的时候抛出异常:
Exception in thread “main” java.lang.OutOfMemoryError[......]
java.lang.OutOfMemoryError: PermGen space问题排查 好
Tomcat内存溢出(java.lang.OutOfMemoryError: PermGen space)的解决办法
Tomcat内存溢出(java.lang.OutOfMemoryError: PermGen space)的解决办法
Tomcat启动时报如下错误:
java.lang.OutOfMemoryError: PermGen space
&nbs[......]
java.lang.OutOfMemoryError: PermGen space解决方法
java.lang.OutOfMemoryError: PermGen space解决方法
struts2–文件上传和uploadFile拦截器成功解决问题
struts2–文件上传和uploadFile拦截器成功解决问题
单文件上传
1. 通过HTML表单上传文件时, 需要将表单的enctype属性设置为multipart/form-data, method属性设置为post.
jsp页面代码:
Struts中the request was rejected because its size (***) exceeds the configured maximum (2097152)
Struts中the request was rejected because its size (***) exceeds the configured maximum (2097152)
这是为什么呢?
这是因为在利用struts中在上传文件的时候,struts的jar包(commons[......]
Struts2上传文件的最大Size的设置
Struts2上传文件的最大Size的设置
struts2中文件上传的二个限制,一个是struts.multipart.maxSize,如果不设置,struts2 的核心包下的default.properties文件里有默认的大小设置struts.multipart.maxSize=2097152[......]
Struts2上传文件的最大Size的设置
Struts2上传文件的最大Size的设置
struts2中文件上传的二个限制,一个是struts.multipart.maxSize,如果不设置,struts2 的核心包下的default.properties文件里有默认的大小设置struts.multipart.maxSize=2097[......]