web
zhouzhangcheng123
这个作者很懒,什么都没留下…
展开
-
s2sh整合
1.导入相关的jar包 2. 整合Spring与Hibernate 目的: 让Spring管理单例的SessionFactory 让Spring管理事务(采用基于注解的方式) 步骤: (1.配置applicationContext.xml文件 <beans xmlns="http://www.springframework.org/schema/be原创 2016-06-28 10:14:24 · 547 阅读 · 0 评论 -
关于web.xml文件莫名其妙报错的问题
如果web.xml提示以下错误: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sessio转载 2016-07-12 10:15:05 · 6705 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationException 错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factor原创 2016-07-12 15:09:13 · 521 阅读 · 0 评论 -
mysql 错误代码总结
1、MySQL添加外键失败ERROR 1452 是因为我原来相关联的外键有数据,但对应的表是没有该数据的。解决方案:1.删除相关数据 2.在对应表创建相关数据 2、MySQL添加外键失败ERROR 1215 两张表里要设主键和外键的字段的数据类型或者数据长度不一样原创 2016-07-14 14:28:54 · 405 阅读 · 0 评论