怎么我没在 spring的事物提交,可是运行完hibernate中DAO后 事物自动提交了 、方法
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext(
"applicationContext.xml");
topo_nodeService dao = (topo_nodeService) ctx
.getBean("topo_nodeService");
TopoNode node = new TopoNode();
node.setDealPhone("11231wwww2");
node.setDealSta((short)1);
node.setNodeId((long)1);
dao.updeteNode(node);
}
不是默认不提交么? 数据库里还是有更新!
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext(
"applicationContext.xml");
topo_nodeService dao = (topo_nodeService) ctx
.getBean("topo_nodeService");
TopoNode node = new TopoNode();
node.setDealPhone("11231wwww2");
node.setDealSta((short)1);
node.setNodeId((long)1);
dao.updeteNode(node);
}
不是默认不提交么? 数据库里还是有更新!
解决方案 »
- cygwin 运行 bin/nutch crawl urls -dir crawled -depth 3 -topN 50 >&crawl.log 出现下面问题
- 关于Jcap的使用,路过的大神,来看看啊!!!
- 高分求从JavaBean生成castor mapping,有答案就结帖,在线等!!!
- 你们做菜单时会经常用到Struts-menu吗?
- HTML解析问题
- list 去重复值,(购物车的实现练习)
- SQLServerException: 索引 1 超出范围。
- 问几个J2EE开发中的术语解释和关系??
- 关于通过JNDI查找TopicConnectionFactory、Topic方式的问题?
- 统计一下,我们这儿有多少人用websphere开发j2ee?[是的请进来报个到]
- Struts1中有哪些Action--希望全面点
- java中如何把值传给radio
要不把代码贴出来看看
看看你的context.xml文件