- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 No identifier specified for entity: com.imooc.dataObject.OrderDetail
注解@Id 应该引入包:import javax.persistence.Id;
2018-05-31 15:57:33 624
原创 No property inList found for type Integer! Traversed path: ProductCategory.categoryType
jpa格式的问题,或者是方法名规则错误;错误的是: List<ProductCategory> findByCategoryTypeInlist(List<Integer> categoryTypeList);正确的是: List<ProductCategory> findByCategoryTypeIn(List<Integer> category...
2018-05-31 15:39:20 2954
转载 Consider defining a bean of type 'com.imooc.service.ProductInfoService' in your configuration.
原因分析: 提示扫描不到service层的bean,建议创建一个bean,然后发现使用注解开发时,service层忘记注入bean了解决方法: 方法1:在CategoryServiceImpl 层加上@Service注解@Servicepublic class CategoryServiceImpl implements CategorySe...
2018-05-30 16:47:25 7293
原创 Inferred type 'S' for type parameter 'S' is not within its bound;
@Overridepublic ProductCategory findOne(Integer categoryId) { return repostitory.findOne(categoryId);}报错解决方案: 1:jdk版本问题(返回类是Optional<Girl>, Optional是jdk8自带的) 2:也是springboot版本问题,版本太高...
2018-05-17 13:34:38 488
原创 Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAUL
create table `product_info` ( `product_id` varchar(32) not null, `product_name` varchar(64) not null comment '商品名称', `product_price` decimal(8,2) not null comment '单价', `product_stock` int...
2018-05-16 11:24:10 439
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人