
javaweb
happy_bigqiang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Java_web(spring+springMVC的总体步骤)
hibernate的使用:(易错)在PO类中添加@Entity注解时,引入的是:import javax.persistence.*;不是:import org.hibernate.annotations.*;//易错原创 2016-09-25 11:27:16 · 519 阅读 · 0 评论 -
jsp中文乱码问题
eclipse默认新建的jsp文件编码是不支持中文的,每次改都好麻烦: 1、设置默认新建的jsp文件为utf-8模式: 如何在eclipse中修改jsp默认编码:http://jingyan.baidu.com/article/f96699bbb151d6894e3c1b08.html 2、设置utf-8之后,jsp文件中写中文是没问题了,但是传中文值给jsp内置对象的session还是乱码,原创 2017-02-10 20:46:22 · 336 阅读 · 0 评论 -
eclipse启动tomcat无法访问
转载:http://blog.csdn.net/wqjsir/article/details/7169838症状: tomcat在eclipse里面能正常启动,而在浏览器中访问http://localhost:8080/不能访问,且报404错误。同时其他项目页面也不能访问。 关闭eclipse里面的tomcat,在tomcat安装目录下双击startup.bat手动启动tomcat服务器。访问h转载 2016-09-30 22:37:45 · 546 阅读 · 0 评论 -
解决hibernate:referenced file contains errors http hibernate.sourceforge.net hibernate-mapping-3.0.dt
转自:http://blog.csdn.net/fengxinyixiao/article/details/10200345今天电脑突然蓝屏,重启后进入eclipse,发现项目下的hibernate_cfg.xml莫名其妙的报错,在网上找了好久最终尝试后得到了答案,报错的内容是:referenced file contains errors http hibernate.sourceforge.NE转载 2017-03-30 20:01:27 · 2950 阅读 · 1 评论 -
java.lang.ClassNotFoundException:(新建的servlet无法找到class文件)
运行环境:win7,neon 3, jre1.8新建了一个测试servlet Hello,访问浏览器,无法找到对应的类,查网上原因说是编译没有class文件,所以思路集中在如何生成class文件; 控制台报错 浏览器报错: 参考解决方案:http://blog.csdn.net/u011008029/article/details/49303723 安照步骤之后,还是没有生成class文原创 2017-04-09 20:52:44 · 30007 阅读 · 3 评论 -
org.hibernate.HibernateException: No CurrentSessionContext configured!
运行环境:jdk1.8,hibernate5.2报错信息:org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:695) a原创 2017-04-11 10:16:37 · 408 阅读 · 0 评论 -
Could not locate getter method for property [com.itcast.domain.Linkman#linkMans]
运行环境:jdk1.8 hibernate5.2报错信息:java.lang.ExceptionInInitializerError at com.itcast.test.Test1.run1(Test1.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect原创 2017-04-11 10:14:47 · 6215 阅读 · 1 评论 -
ssm整合:
ssm整合: 1)Dao层 pojo和映射文件以及接口使用逆向工程生成 SqlMapConfig.xml mybatis核心配置文件 ApplicationContext-dao.xml 整合后spring在dao层的配置 数据源 会话工厂 扫描Mapper 2原创 2017-06-03 16:42:25 · 421 阅读 · 0 评论