上篇博文中写了spring与springmvc的整合,而这一篇则是又加上了hibernate。
与上次一样,这一次仍然是先导入jar包,这一次则要加入hibernate中的jar包,如下图所示:
同时再新建两个源文件夹,一个为config,一个为test,分别存放配置文件与测试用例,现在来进行spring,springmvc以及hibernate的配置。
新建spring-hiberna...
分类:
编程语言 时间:
2015-05-20 09:48:16
阅读次数:
306
1、错误描述
org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' character.
at org.apach...
分类:
其他好文 时间:
2015-05-15 22:52:26
阅读次数:
587
1、错误描述
org.hibernate.exception.ConstraintViolationException: error executing work
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:72)
at org.hiber...
分类:
其他好文 时间:
2015-05-15 22:52:01
阅读次数:
891
一、web.xml <!-- 通过上下文参数指定spring配置文件的位置 --> ?<context-param> ??<param-name>contextConfigLocation</param-name> ??<param-value>classpath:beans.xml</param-value> ?</context-param...
分类:
编程语言 时间:
2015-05-09 11:54:13
阅读次数:
174
1、错误描述
2、错误原因
在Windows7 64位系统下,安装了MySQL64位,但是安装的驱动是32位,导致类型不匹配出错
3、解决办法
在官网上下载最新的64位驱动安装程序,重新安装...
分类:
其他好文 时间:
2015-05-06 01:31:41
阅读次数:
148
1、错误描述
[ERROR:]2015-05-05 09:27:12,090 [插入失败]
org.hibernate.exception.JDBCConnectionException: Could not open connection
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLSt...
分类:
数据库 时间:
2015-05-05 23:54:21
阅读次数:
267
1、错误描述
[ERROR:]2015-05-05 15:48:55,847 [异常拦截]
org.hibernate.exception.DataException: error executing work
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDe...
分类:
数据库 时间:
2015-05-05 23:52:14
阅读次数:
799
前面几篇博客学习了spring中IOC,和springAOP以及spring通过jdbc操作数据库的方法。我们的目标是学习springMVC,那么在正式学习springMVC之前呢,我还是想到先写一篇文章来讲解S2SH整合吧,这样大家简单了解了structs2,对于后面学习springMVC也是有很大好处的。
我们先来整合spring和hibernate吧,我这里新建一个web工程叫做ssh。
第一...
分类:
编程语言 时间:
2015-05-03 09:22:28
阅读次数:
300
1、错误描述
org.hibernate.exception.GenericJDBCException: Could not open connection
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)
at or...
分类:
数据库 时间:
2015-05-02 01:09:05
阅读次数:
226
1、错误描述
WARN:2015-05-01 13:26:10[localhost-startStop-1] - HHH000402: Using Hibernate built-in connection pool (not for production use!)
WARN:2015-05-01 13:26:10[localhost-startStop-1] - Exception enco...
分类:
编程语言 时间:
2015-05-01 14:51:54
阅读次数:
558