项目部署好了,没有显示出图片等信息

来源:10-2 项目打包发布与域名解析

weixin_慕设计7543426

2020-06-09

图片描述
图片描述
图片描述我感觉是数据库的问题,但是查看catalina.out文件没有看到是,数据库报错。
catalina.out文件里面的内容

09-Jun-2020 23:49:57.286 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/8.5.55
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 5 2020 22:10:54 UTC
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.55.0
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.10.0-1062.9.1.el7.x86_64
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/java/jdk1.8/jre
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_251-b08
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
09-Jun-2020 23:49:57.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
09-Jun-2020 23:49:57.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
09-Jun-2020 23:49:57.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
09-Jun-2020 23:49:57.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
09-Jun-2020 23:49:57.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
09-Jun-2020 23:49:57.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
09-Jun-2020 23:49:57.289 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
09-Jun-2020 23:49:57.289 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
09-Jun-2020 23:49:57.502 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
09-Jun-2020 23:49:57.535 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
09-Jun-2020 23:49:57.558 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 901 ms
09-Jun-2020 23:49:57.605 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
09-Jun-2020 23:49:57.605 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.55
09-Jun-2020 23:49:57.630 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/projectdemo.war]
09-Jun-2020 23:49:59.504 INFO [localhost-startStop-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.
09-Jun-2020 23:49:59.733 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/projectdemo.war] has finished in [2,103] ms
09-Jun-2020 23:49:59.748 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/docs]
09-Jun-2020 23:49:59.774 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in [26] ms
09-Jun-2020 23:49:59.774 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
09-Jun-2020 23:49:59.996 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finished in [222] ms
09-Jun-2020 23:49:59.996 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
09-Jun-2020 23:50:00.025 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has finished in [29] ms
09-Jun-2020 23:50:00.025 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
09-Jun-2020 23:50:00.050 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished in [25] ms
09-Jun-2020 23:50:00.050 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
09-Jun-2020 23:50:00.070 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [20] ms
09-Jun-2020 23:50:00.084 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-80"]
09-Jun-2020 23:50:00.209 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2651 ms
09-Jun-2020 23:50:00.843 INFO [http-nio-80-exec-1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'spring-dispatcher': initialization started
09-Jun-2020 23:50:00.871 INFO [http-nio-80-exec-1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'spring-dispatcher-servlet': startup date [Tue Jun 09 23:50:00 CST 2020]; root of context hierarchy
09-Jun-2020 23:50:00.918 INFO [http-nio-80-exec-1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from file [/usr/local/tomcat/webapps/projectdemo/WEB-INF/classes/spring/spring-dao.xml]
09-Jun-2020 23:50:01.074 INFO [http-nio-80-exec-1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from file [/usr/local/tomcat/webapps/projectdemo/WEB-INF/classes/spring/spring-service.xml]
09-Jun-2020 23:50:01.260 INFO [http-nio-80-exec-1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from file [/usr/local/tomcat/webapps/projectdemo/WEB-INF/classes/spring/spring-web.xml]
09-Jun-2020 23:50:01.774 INFO [http-nio-80-exec-1] com.mchange.v2.log.MLog.<clinit> MLog clients using java 1.4+ standard logging.
09-Jun-2020 23:50:01.813 INFO [http-nio-80-exec-1] com.mchange.v2.c3p0.C3P0Registry.banner Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
09-Jun-2020 23:50:02.793 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/shopdetail],methods=[GET]}" onto private java.lang.String com.imooc.o2o.web.frontend.FrontendController.showShopDetail()
09-Jun-2020 23:50:02.794 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/productdetail],methods=[GET]}" onto private java.lang.String com.imooc.o2o.web.frontend.FrontendController.showProductDetail()
09-Jun-2020 23:50:02.794 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/shoplist],methods=[GET]}" onto private java.lang.String com.imooc.o2o.web.frontend.FrontendController.showShopList()
09-Jun-2020 23:50:02.794 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/frontend/index],methods=[GET]}" onto private java.lang.String com.imooc.o2o.web.frontend.FrontendController.index()
09-Jun-2020 23:50:02.796 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.frontend.MainPageController.listMainPageInfo()
09-Jun-2020 23:50:02.797 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.frontend.ProductDetailController.listProductDetailPageInfo(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.815 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.frontend.ShopDetailController.listShopDetailPageInfo(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.816 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.frontend.ShopDetailController.listProductsByShop(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.817 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.frontend.ShopListController.listShops(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.834 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.frontend.ShopListController.listShopsPageInfo(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.836 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getproductcategorylist],methods=[GET]}" onto private com.imooc.o2o.dto.Result<java.util.List<com.imooc.o2o.Entity.ProductCategory>> com.imooc.o2o.web.shopadmin.ProductCategoryManagementController.getProductCategoryList(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.837 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.shopadmin.ProductCategoryManagementController.addProductCategorys(java.util.List<com.imooc.o2o.Entity.ProductCategory>,javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.837 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.shopadmin.ProductCategoryManagementController.removeProductCategory(java.lang.Long,javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.840 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.shopadmin.ProductManagementController.getProductById(java.lang.Long)
09-Jun-2020 23:50:02.841 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.shopadmin.ProductManagementController.addProduct(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.841 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.shopadmin.ProductManagementController.modifyProduct(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.841 INFO [http-nio-80-exec-1] 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.imooc.o2o.web.shopadmin.ProductManagementController.getProductListByShop(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.843 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/shopoperation],methods=[GET]}" onto public java.lang.String com.imooc.o2o.web.shopadmin.ShopAdminController.shopOperation()
09-Jun-2020 23:50:02.843 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/shoplist],methods=[GET]}" onto public java.lang.String com.imooc.o2o.web.shopadmin.ShopAdminController.shoplist()
09-Jun-2020 23:50:02.843 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/shopmanagement],methods=[GET]}" onto public java.lang.String com.imooc.o2o.web.shopadmin.ShopAdminController.shopmanagement()
09-Jun-2020 23:50:02.844 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/productcategorymanagement],methods=[GET]}" onto private java.lang.String com.imooc.o2o.web.shopadmin.ShopAdminController.productCategoryManage()
09-Jun-2020 23:50:02.844 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/productoperation],methods=[GET]}" onto public java.lang.String com.imooc.o2o.web.shopadmin.ShopAdminController.productOperation()
09-Jun-2020 23:50:02.844 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/productmanagement],methods=[GET]}" onto public java.lang.String com.imooc.o2o.web.shopadmin.ShopAdminController.productManagement()
09-Jun-2020 23:50:02.860 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/modifyshop],methods=[POST]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.imooc.o2o.web.shopadmin.ShopManagementController.modifyShop(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.860 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getshoplist],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.imooc.o2o.web.shopadmin.ShopManagementController.getShopList(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.861 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getshopinitinfo],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.imooc.o2o.web.shopadmin.ShopManagementController.getShopInitInfo()
09-Jun-2020 23:50:02.861 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/registershop],methods=[POST]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.imooc.o2o.web.shopadmin.ShopManagementController.registerShop(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.861 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getshopmanagementinfo],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.imooc.o2o.web.shopadmin.ShopManagementController.getShopManagementInfo(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:02.861 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/shopadmin/getshopbyid],methods=[GET]}" onto private java.util.Map<java.lang.String, java.lang.Object> com.imooc.o2o.web.shopadmin.ShopManagementController.getShopById(javax.servlet.http.HttpServletRequest)
09-Jun-2020 23:50:03.303 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-dispatcher-servlet': startup date [Tue Jun 09 23:50:00 CST 2020]; root of context hierarchy
09-Jun-2020 23:50:03.368 INFO [http-nio-80-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-dispatcher-servlet': startup date [Tue Jun 09 23:50:00 CST 2020]; root of context hierarchy
09-Jun-2020 23:50:03.464 INFO [http-nio-80-exec-1] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
09-Jun-2020 23:50:03.483 INFO [http-nio-80-exec-1] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'
09-Jun-2020 23:50:03.644 INFO [http-nio-80-exec-1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'spring-dispatcher': initialization completed in 2799 ms


本地运行是没问题的。这是本地运行的结果。
图片描述

写回答

1回答

翔仔

2020-06-10

同学好,我看你有404异常,就是说找不到listmainpageinfoi的路由,触发不了后端的方法后去数据,直接访问下你的404链接 保证能获取到数据 或者连接到后端才可以

0
4
weixin_慕设计7543426
回复
翔仔
谢谢老师,已经搞定了,数据库的名称写错了
2020-06-11
共4条回复

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程