摘要: mysql查询默认不区分大小写,这在用户登录验证等情况下明显行不通。不过可以加一个关键字,binary,用二进制查询的方式。而在thinkphp中没有这个查询条件,只好用原生sql查询实现。publicfunction loginCheck(){ $username = I('para... 阅读全文
posted @ 2015-05-10 21:52 homer3000 阅读(1203) 评论(0) 推荐(0)
摘要: Struts2 action前的数据预处理在进入updateDormitory.jsp页面,之前,获取了dormitory和buildings的消息,放入值栈。页面就可以获取得到了。 修改 /jsp/updateDormitory.jsp public String beforeUpdateDormitory() { Dormi... 阅读全文
posted @ 2015-05-01 15:16 homer3000 阅读(155) 评论(0) 推荐(0)
摘要: centos6.6安装及常用设置1.安装a)在ubuntu下安装a1.把centos系统dvd1.iso里的文件拷贝出来,放在ubuntu的根目录,或者其他地方。a2.重启电脑,在系统选择界面按c进入grub依次输入:set root=(hd0,msdos2)linux isolinux/vmlin... 阅读全文
posted @ 2015-04-26 02:39 homer3000 阅读(276) 评论(0) 推荐(0)
摘要: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.wolf.a_StudentManageSystem.domain.Teacher.courses, could not initialize proxy - no Session at org.hiber... 阅读全文
posted @ 2015-04-20 20:25 homer3000 阅读(1162) 评论(0) 推荐(0)
摘要: Initial SessionFactory creation failed.org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider] 在配置文件里的配置是这样的, ... 阅读全文
posted @ 2015-04-19 19:36 homer3000 阅读(491) 评论(0) 推荐(0)
摘要: Exception in thread "main" java.lang.ExceptionInInitializerError at com.wolf.execise.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:22) at com.wolf.execise.util.HibernateUtil.(HibernateUtil... 阅读全文
posted @ 2015-04-19 19:12 homer3000 阅读(592) 评论(0) 推荐(0)
摘要: 来自为知笔记(Wiz) 阅读全文
posted @ 2015-04-19 11:39 homer3000 阅读(107) 评论(0) 推荐(0)
摘要: Class.forName(driverName);Sql_conn=DriverManager.getConnection(dbURL,userName,userPwd);Statementstmt=Sql_conn.createStatement();ResultSetrs=stmt.execu... 阅读全文
posted @ 2015-04-19 10:51 homer3000 阅读(199) 评论(0) 推荐(0)
摘要: 安装codeblocks的时候,自带minGw。想着cmd下使用gcc,需要配置一下环境变量。只需要将minGw的bin目录加到Path下即可。 阅读全文
posted @ 2015-04-19 02:57 homer3000 阅读(151) 评论(0) 推荐(0)
摘要: 1.首先更改maven安装目录下conf目录下的settings.xml,里面有一项:E:/documents/.m2/repository2.改eclipse的配置,prefrences->maven->user settings。。。到maven的conf目录下的settings.xml。 阅读全文
posted @ 2015-04-19 02:45 homer3000 阅读(182) 评论(0) 推荐(0)