急,java中spring和hibernate整合问题
来源:百度知道 编辑:UC知道 时间:2024/05/13 05:35:32
开发java web的人应该知道就算现在最新的版本spring2.0除了mysql5.0其他的数据库都不支持自动提交功能,需要设置管理机制,我查了大量资料看到最简单的方法在applicationContext.xml改成(也就是加入事务提交自动管理机制)代码如下<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
htt
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
htt
首先建议你定义bean的时候,将id属性值的第一个字母用小写,就是将NewUserDAO改成newUserDAO
然后你检查下你的包路径是否正确.你进入你的项目文件夹,找到web目录,然后看下WEB-INF/classes目录下的目录结构是否有dao文件夹,该文件夹下是否有NewUserDAO.class文件
如果没有,那错误是肯定的了...
急,java中spring和hibernate整合问题
Java中以后用的spring 是什么???
求高手指点!JavaBean和Spring和Java是什么关系?
C#H和Java的区别
JTA,java bean,session bean,struts,spring这4者中哪个不是J2EE技术?
New Years Day和Spring festival的区别!急ing!!!
hibernat,struts和spring
java中关于数组保存和读取,急
JAVA struts好学还是spring好学?
在in the morning中为什么in后面要加the呢?在in spring中in和spring中为什么不加the???