之前测试代码:
@Test
public void testAddOld() {
ApplicationContext appContext = new ClassPathXmlApplicationContext("application.xml");
appContext.getBean("testTbService");
TestTb testTb = new TestTb();
testTb.setName("小虫");
testTb.setBirthday(new Date());
testTbService.addTestTb(testTb);
}
@Test
public void testAddOld() {
Appli