@Test
public void runtest() {
ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
ProductService productService = (ProductService) ctx.getBean("productServiceImpl");
ProductType type = new ProductType();
type.setName("瑜伽用品");
type.setNote("好产");
type.setVisible(false);
productService.save(type);
}
jpa + Spring 2.5 表插入不了数据
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-