上面的信息并没有显示
26-Nov-2019 23:02:55.655 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:o2o' did not find a matching property.
26-Nov-2019 23:02:55.982 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [4.0]. Default version will be used.
26-Nov-2019 23:02:57.395 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
还有老师帮忙看一下这个警告
正在回答
同学你好,建议同学检查一下shopDao.xml中queryByShopId是否正确,如:
如果不是这里的问题,建议同学使用debug的方式执行一下,查看是执行到哪里报错。
祝:学习愉快~
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:64)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
找到了
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'shopCondition' in 'class java.lang.Long'
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
com.sun.proxy.$Proxy119.selectOne(Unknown Source)
org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:166)
org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82)
org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
com.sun.proxy.$Proxy131.queryByShopId(Unknown Source)
com.fushan.o2o.service.impl.ShopServiceImpl.getByShopId(ShopServiceImpl.java:67)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
com.sun.proxy.$Proxy132.getByShopId(Unknown Source)
com.fushan.o2o.controller.frontend.ShopDetailController.listShopDetailPageInfo(ShopDetailController.java:48)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)
javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
我不是很懂老师的Root cause
7-Nov-2019 22:01:03.241 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/index],methods=[GET]}" onto private java.lang.String com.fushan.o2o.controller.frontend.FrontendController.index()
27-Nov-2019 22:01:03.242 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/productdetail],methods=[GET]}" onto private java.lang.String com.fushan.o2o.controller.frontend.FrontendController.showProductDetail()
27-Nov-2019 22:01:03.242 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/shoplist],methods=[GET]}" onto private java.lang.String com.fushan.o2o.controller.frontend.FrontendController.showShopList()
27-Nov-2019 22:01:03.242 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/shopdetail],methods=[GET]}" onto private java.lang.String com.fushan.o2o.controller.frontend.FrontendController.showShopDetail()
27-Nov-2019 22:01:03.243 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/listmainpageinfo],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.frontend.MainPageController.listMainPageInfo()
27-Nov-2019 22:01:03.245 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/listproductdetailpageinfo],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.frontend.ProductDetailController.listProductDetailPageInfo(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.248 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/listshopdetailpageinfo],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.frontend.ShopDetailController.listShopDetailPageInfo(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.248 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/listproductsbyshop],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.frontend.ShopDetailController.listProductsByShop(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.250 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/listshopspageinfo],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.frontend.ShopListController.listShopsPageInfo(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.270 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/listshops],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.frontend.ShopListController.listShops(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.273 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getproductcategorylist],methods=[GET]}" onto private com.fushan.o2o.dto.Result<java.util.List<com.fushan.o2o.entity.ProductCategory>> com.fushan.o2o.controller.shopadmin.ProductCategoryManagementController.getProductCategoryList(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.273 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/addproductcategorys],methods=[POST]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.shopadmin.ProductCategoryManagementController.addProductCategorys(java.util.List<com.fushan.o2o.entity.ProductCategory>,javax.servlet.http.HttpServletRequest)
Wed Nov 27 22:01:03 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
27-Nov-2019 22:01:03.398 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/removeproductcategory],methods=[POST]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.shopadmin.ProductCategoryManagementController.removeProductCategory(java.lang.Long,javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.400 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getproductlistbyshop],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.shopadmin.ProductManagementController.getProductListByShop(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.400 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getproductbyid],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.shopadmin.ProductManagementController.getProductById(java.lang.Long)
27-Nov-2019 22:01:03.400 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/addproduct],methods=[POST]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.shopadmin.ProductManagementController.addProduct(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.400 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/modifyproduct],methods=[POST]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.fushan.o2o.controller.shopadmin.ProductManagementController.modifyProduct(javax.servlet.http.HttpServletRequest)
27-Nov-2019 22:01:03.402 信息 [http-nio-8080-exec-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/productcategorymanagement],methods=[GET]}" onto public java.lang.String com.fushan.o2o.controller.shopadmin.ShopAdminController.productCategoryManage()
com.fushan.o2o.controller.shopadmin.ShopAdminController.productManagement()
com.fushan.o2o.controller.shopadmin.ShopAdminController.productOperation()
com.fushan.o2o.controller.shopadmin.ShopAdminController.shopOperation()
com.fushan.o2o.controller.shopadmin.ShopAdminController.shopManagement()
是不是这个 我没什么印象定义了什么long类
private Shop compactShopCondition4Search(long parentId, long shopCategoryId, int areaId, String shopName) {
Shop shopCondition = new Shop();
if (parentId != -1L) {
// 查询某个一级ShopCategory下面的所有二级ShopCategory里面的店铺列表
ShopCategory childCategory = new ShopCategory();
ShopCategory parentCategory = new ShopCategory();
parentCategory.setShopCategoryId(parentId);
childCategory.setParent(parentCategory);
shopCondition.setShopCategory(childCategory);
}
if (shopCategoryId != -1L) {
// 查询某个二级ShopCategory下面的店铺列表
ShopCategory shopCategory = new ShopCategory();
shopCategory.setShopCategoryId(shopCategoryId);
shopCondition.setShopCategory(shopCategory);
}
if (areaId != -1L) {
// 查询位于某个区域Id下的店铺列表
Area area = new Area();
area.setAreaId(areaId);
shopCondition.setArea(area);
}
if (shopName != null) {
// 查询名字里包含shopName的店铺列表
shopCondition.setShopName(shopName);
}
// 前端展示的店铺都是审核成功的店铺
shopCondition.setEnableStatus(1);
return shopCondition;
}
}
这是我代码里面含有ShopCondition的
- 参与学习 人
- 提交作业 323 份
- 解答问题 8263 个
本阶段将带你学习主流框架SSM,以及SpringBoot ,打通成为Java工程师的最后一公里!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星