我在实体类里写了get方法,但是测试报错如下:There is no getter for property named 'shopCategoryId
来源:4-5 店铺注册之Service层的实现
慕粉0950548111
2019-03-02
写回答
2回答
-
慕粉0950548111
提问者
2019-03-02
public class ShopCategory {
private Long shopCategoryId;
private String shopCategoryName; //名称
private String shopCategoryDesc; //描述
private String shopCategoryImg; //图片链接地址
private Integer priority; //权重
private Date createTime; //创建时间
private Date lastTime; //最新修改时间
private ShopCategory parent; //上级ID
public Long getShopCategoryId() {
return shopCategoryId;
}
public void setShopCategoryId(Long shopCategoryId) {
this.shopCategoryId = shopCategoryId;
}
00 -
翔仔
2019-03-02
同学好,请贴出实体类,检查下大小写问题
052019-03-05
相似问题