???????web????????????л?????????????????н????????????????????????????????Web???????в??????Web???????????Spring??hibernate??JBPM????????ehcache??????????????Щ????????????ú??????Ч??????????л??????????????????????????????ú??????????Ч???????????????????????????????????????????????ü?????????????????????????????????в??????
???????????????Ч????????????????
????1????????Junit4????????м???????????setUp()?г?????????????????£?

 

@Override
protected void setUp() throws Exception {
super.setUp();
String[] paths = { "classpath:applicationContext.xml" };
ApplicationContext ctx = new ClassPathXmlApplicationContext(paths);
SpringContextListener.setApplicationContext(ctx);
// ############???servlet???????????????????????·??
Constant.CURRENT_PROJECT_PATH = "src/";
// ############????????л??bean
userManager = (UserManager) ctx.getBean("userManager");
userService = (UserService) ctx.getBean("userService");
}

????2?????Sprint-test.jar????????????????????????????

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
@TransactionConfiguration(transactionManager="transactionManager"??defaultRollback=false) //true?????????в??????????и????????
public class JBPMProcessTest2 extends  AbstractTransactionalJUnit4SpringContextTests{
???????????????????????????????????????????????????????????????????????????????????????????????
????????μ???http://blog.csdn.net/zhangyaoming2004/article/details/7619489 ???渽??Jar?????? http://yunpan.cn/QUtVay66VnU4T
?????????????????????????Щ???????????????????????????????У????£?
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????