![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
明月心123
这个作者很懒,什么都没留下…
展开
-
Java开发熟手该当心的11个错误
#1、不在属性文件或XML文件中外化配置属性。比如,没有把批处理使用的线程数设置成可在属性文件中配置。你的批处理程序无论在DEV环境中,还是UAT(用户验收测试)环境中,都可以顺畅无阻地运行,但是一旦部署在PROD 上,把它作为多线程程序处理更大的数据集时,就会抛出IOException,原因可能是JDBC驱动版本不同,也可能是#2中讨论的问题。如果线程数目 可以在属性文件中配置,那么使它成为转载 2015-03-22 14:42:48 · 268 阅读 · 0 评论 -
Error creating document instance. Cause: org.xml.sax.SAXParseException: The string "--" is not perm
Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The string "--" is not permitted within comments.该错误出现的原因是mybatis对应的sqlMap原创 2016-06-21 16:29:06 · 14227 阅读 · 3 评论 -
Error:could not create the java virtual Machine
通过设置环境变量可以解决1.在"我的电脑"上点击右键,选择"属性"--"高级"--"环境变量",添加jdk的路径“C:\Program Files (x86)\Java\jdk1.7.0_65\bin”2.在系统变量下点"新建"按钮5.在弹出的"新建系统变量"对话框中,在"变量名"中,输入"classpath",在"变量值&qu原创 2018-09-04 13:50:05 · 105200 阅读 · 3 评论