public class testAuxDict {
//读spring配置文件
public static BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext.xml");
AuxDict auxdict = new AuxDict();
AuxDictAction ada = (AuxDictAction) factory.getBean("auxdictAction");
@Test
public void test() {
auxdict.setDict_name("name1");
auxdict.setDict_type("type1");
auxdict.setDict_note("note1");
ada.setAuxdict(auxdict);
ada.save();
}
}