存在类Product和Type,代码如下: public class Product { // 产品 int id; // 主键 String name; // 名称 Type type; // 产品类型 ...... // get、set方法 } public class Type { // 产品类型 int id; // 主键 String name; // 名称 ...... // get、set方法 } 下列为针对Product和Type类的Spring配置文件,请补齐缺少的部分。 ="type"/>