
Java
文章平均质量分 71
迷茫的兔子
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
XML配置文件的读取
import java.io.FileInputStream;import java.io.InputStream;import java.util.Properties;public class ConfigReader {private Properties prop=new Properties();//私有构造方法private ConfigReader(){/** *1.配置文件在src原创 2015-02-15 15:31:19 · 231 阅读 · 0 评论 -
Incorrect string value: '\xE6\xB5\x8B\xE8\xAF\x95...' for column 'textName' at row 1 报错原因!!
Hibernate 报错 :org.hibernate.exception.GenericJDBCException: could not execute statement ----- Caused by: java.sql.SQLException: Incorrect string value: '\xE6\xB5\x8B\xE8\xAF\x95...' for原创 2015-03-21 18:30:00 · 6502 阅读 · 0 评论 -
String == 与equals 区别
public static void main(String[] args) {String str1="ABCD";String str2="AB"+new String("CD");String str3="A"+"B"+"C"+"D";String str4=new String("ABCD");System.out.println("1.str1==str2 :原创 2015-03-22 17:39:26 · 387 阅读 · 0 评论 -
web.xml文件详解
在项目中总会遇到一些关于加载的优先级问题,刚刚就遇到了一个问题,由于项目中使用了quartz任务调度,quartz在web.xml中是使用listener进行监听的,使得在tomcat启动的时候能马上检查数据库查看那些任务未被按时执行,而数据库的配置信息在是在web.xml中使用servlet配置的,导致tomcat启动后在执行quartz任务时报空指针,原因就是servlet中的数据库连接信息未转载 2015-09-07 10:34:05 · 371 阅读 · 0 评论 -
MyBatis 错误总结
-----------mybatis下载及中文文档http://mybatis.github.io/mybatis-3/zh/index.html // 中文文档https://github.com/mybatis/mybatis-3/releases //下载一、注意 配置为文件不一样mybatis.xml:"http://mybatis.org/原创 2015-09-07 10:43:36 · 2592 阅读 · 0 评论