`
文章列表

DOM4J

import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import org.dom4j.Document; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.XMLWriter; public class XMLParser { public static void main ...
不要硬编码换行符,因为 windows下的文本文件换行符:\r\n linux/unix下的文本文件换行符:\r Mac下的文本文件换行符:\n 所以要用下面的方式: System.getProperty("line.separator");
IE缺省对URL后面的参数是不编码发送的,但是tomat缺省是按ISO8859-1来进行URL解码   设置server.xml中的Connector属性URIEncoding="UTF-8",确保解码格式与编码格式统一
<set name="actSet" table="activity" lazy="false" inverse="true">         <key column="userId"/>         <element type="integer" column="id"/>        </set>   inverse默认值为false,该情况下hibernate会对关联的另一端做级联操作(有可能 ...
Firefox image/jpeg  IE image/pjpeg
maven slf4j(simple log facade)
spring-framework-reference.pdf   216
  使用Hibernate最新包3.6.1.Final替换掉项目中的3.5.5-Final,重新启动服务器时,报:Caused by: java.lang.NoClassDefFoundError: javax/persistence/EntityListeners的错误。 看这个问题,大家都知道是缺少包,但就是不知道缺啥?后来我在某英文论坛上看到了解决方法,就是缺少hibernate-jpa-2.0-api-1.0.0.Final.jar,这个包可以在Hibernate包中的lib\jpa下找到,而不是网上有些网友说的缺少ejb3-persistence.jar包。 我刚开始在Googl ...
/WEB-INF/*-context.xml com/mycompany/**/applicationContext.xml file:C:/some/path/*-context.xml classpath:com/mycompany/**/applicationContext.xml classpath*: Prefix: 你懂的。。。     DefaultListableBeanFactory 567 DefaultSingletonBeanRegistry 222 AbstractAutowireCapableBeanFactory 519 Abstra ...
db.url=jdbc\:mysql\://127.0.0.1/hibernate?characterEncoding\=utf-8&amp;autoReconnect\=true&amp;useUnicode\=true&amp;rewriteBatchedStatements\=true   在做spring和hibernate整合时,characterEncoding必须为第一个参数,否则可能乱码。。。
上传文件类型
http://blog.csdn.net/samgu3663/article/details/5113085
Close Eclipse Delete <workspace>/.metadata/.plugins/org.eclipse.jdt.core/*.index Delete <workspace>/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt Start Eclipse again

tomcat 主项目配置

<?xml version='1.0' encoding='utf-8'?><Context docBase="E:\workspaces\IBM\eclipse\insurance\InsuranceCtx" path="" reloadable="true"/>     xml文件名必须是ROOT.xml
早期版本手机号码段支持少,导致15**号码被认为不合法
Global site tag (gtag.js) - Google Analytics