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");

你可能感兴趣的:(application)