测试修改类报错了
{"success":false,"code":1001,"data":null,"message":"JSON parse error: Invalid numeric value: Leading zeroes not allowed; nested exception is com.fasterxml.jackson.core.JsonParseException: Invalid numeric value: Leading zeroes not allowed\n at [Source: (PushbackInputStream); line: 3, column: 12]"}
分页查询报错了啥问题
{
"success": false,
"code": 1001,
"data": null,
"message": "java.lang.NullPointerException at com.example.antmall.business.product.service.impl.ProductServiceImpl.page(ProductServiceImpl.java:41) at com.example.antmall.business.product.service.impl.ProductServiceImpl$$FastClassBySpringCGLIB$$815f3732.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689) at com.example.antmall.business.product.service.impl.ProductServiceImpl$$EnhancerBySpringCGLIB$$21f2dd78.page() at com.example.antmall.business.product.controller.ProductController.page(ProductController.java:44) at com.example.antmall.business.product.controller.ProductController$$FastClassBySpringCGLIB$$676f4a2.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)"
实体类和数据库字段不匹配的问题怎么解决啊,这是爆的错:
\r\n### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'delete_flag' in 'where clause'\r\n### The error may exist in com/example/antmall/business/product/mapper/ProductMapper.java (best guess)\r\n### The error may involve defaultParameterMap\r\n### The error occurred while setting parameters\r\n### SQL: SELECT COUNT(*) AS total FROM t_product WHERE delete_flag = 0 AND (name = ?)\r\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'delete_flag' in 'where clause'\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column 'delete_flag' in 'where clause'"
请先
!