测试接口报404 只有http://localhost:8088/mmall_war_exploded/能访问
来源:6-9 用户模块所有功能自测试
有数
2019-08-03
老师您好
直接点击控制台的mmall:war exploded
可以访问到
但是其他接口就全部是404
下面是tomcat的部分日志,没有报错信息 完整的太长发不出来
信息: Mapped "{[/manage/order/detail.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse<com.mmall.vo.OrderVo> com.mmall.controller.backend.OrderManageController.orderDetail(javax.servlet.http.HttpSession,java.lang.Long)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
信息: Mapped "{[/manage/order/list.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse<com.github.pagehelper.PageInfo> com.mmall.controller.backend.OrderManageController.orderList(javax.servlet.http.HttpSession,int,int)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
信息: Mapped "{[/manage/order/search.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse<com.github.pagehelper.PageInfo> com.mmall.controller.backend.OrderManageController.orderSearch(javax.servlet.http.HttpSession,java.lang.Long,int,int)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
信息: Mapped "{[/manage/order/send_goods.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse<java.lang.String> com.mmall.controller.backend.OrderManageController.orderSendGoods(javax.servlet.http.HttpSession,java.lang.Long)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
信息: Mapped "{[/manage/category/add_category.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse com.mmall.controller.backend.CategoryManageController.addCategory(javax.servlet.http.HttpSession,java.lang.String,int)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
信息: Mapped "{[/manage/category/set_category_name.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse com.mmall.controller.backend.CategoryManageController.setCategoryName(javax.servlet.http.HttpSession,java.lang.Integer,java.lang.String)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
信息: Mapped "{[/manage/category/get_category.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse com.mmall.controller.backend.CategoryManageController.getChildrenParallelCategory(javax.servlet.http.HttpSession,java.lang.Integer)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
信息: Mapped "{[/manage/category/get_deep_category.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public com.mmall.common.ServerResponse com.mmall.controller.backend.CategoryManageController.getCategoryAndDeepChildrenCategory(javax.servlet.http.HttpSession,java.lang.Integer)
Aug 03, 2019 8:30:54 PM org.springframework.web.servlet.FrameworkServlet initServletBean
信息: FrameworkServlet 'dispatcher': initialization completed in 781 ms
[2019-08-03 08:30:54,928] Artifact mmall:war exploded: Artifact is deployed successfully
[2019-08-03 08:30:54,928] Artifact mmall:war exploded: Deploy took 4,612 milliseconds
Aug 03, 2019 8:30:59 PM org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /Users/lucky/apache-tomcat-7.0.96/webapps/manager
Aug 03, 2019 8:31:00 PM org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory /Users/lucky/apache-tomcat-7.0.96/webapps/manager has finished in 44 ms
麻烦老师帮忙看下是什么问题
写回答
3回答
-
注意接口测试的时候加上/mmall_war_exploded,这是Context。http://ip:port/context这样的结构才能正确访问一个具体的应用。
112019-08-04 -
慕标5173116
2020-12-10
怎么添加
00 -
慕标5173116
2020-12-10
还是不太懂怎么解决的 接口测试的时候/mmall_war_exploded要添加在哪呢
00
相似问题