摘要:
1.ProductType的JPA映射View Code 1 @Entity 2 public class ProductType { 3 private int id; 4 private String name; 5 private String note; 6 private boolean visible = true; 7 private Set<ProductType> child; 8 private ProductType parent; 9 10 @Id @GeneratedValue(strategy = Gener... 阅读全文
摘要:
a.完成spring+jpa的集成并测试成功b.导入strut1所用的jar包c.在web.xml添加spring的启动配置代码:View Code 1 <context-param>2 <param-name>contextConfigLocation</param-name>3 <param-value>classpath:beans.xml</param-value>4 </context-param>5 <listener>6 <listener-class>org.springframew 阅读全文