当前位置: 代码迷 >> Web前端 >> java application 手动开启spring事宜
  详细解决方案

java application 手动开启spring事宜

热度:542   发布时间:2012-09-05 15:19:34.0
java application 手动开启spring事务

org.springframework.context.ApplicationContext ctx = new org.springframework.context.support.FileSystemXmlApplicationContext("D:\\Workspaces\\guoyan\\SRIT_DataSyn\\WebContent\\WEB-INF\\application-jotm.xml");
?
然后开启事务
AccessWS? accessws =(AccessWS)ctx.getBean("accessServiceImpl");

  相关解决方案