点击link会自动重定向回list页面

来源:4-1 基于bootstrap开发页面结构

qq_雾霭晨曦_0

2018-06-15 22:17

为什么我点击link没办法跳到详情页,而是自动回到list页面呀,这是idea的信息

22:14:26.438 [http-nio-8080-exec-7] DEBUG org.seckill.dao.SeckillDao.queryAll - <==      Total: 4

22:14:26.439 [http-nio-8080-exec-7] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@60d8c8d]

22:14:26.439 [http-nio-8080-exec-7] DEBUG o.s.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource

22:14:26.439 [http-nio-8080-exec-7] DEBUG o.s.web.servlet.DispatcherServlet - Rendering view [org.springframework.web.servlet.view.JstlView: name 'list'; URL [/WEB-INF/jsp/list.jsp]] in DispatcherServlet with name 'seckill-dispatcher'

22:14:26.440 [http-nio-8080-exec-7] DEBUG o.s.web.servlet.view.JstlView - Added model object 'list' of type [java.util.ArrayList] to request in view with name 'list'

22:14:26.440 [http-nio-8080-exec-7] DEBUG o.s.web.servlet.view.JstlView - Forwarding to resource [/WEB-INF/jsp/list.jsp] in InternalResourceView 'list'

22:14:26.463 [http-nio-8080-exec-7] DEBUG o.s.web.servlet.DispatcherServlet - Successfully completed request


写回答 关注

2回答

  • qq_雾霭晨曦_0
    2018-06-15 22:42:56

    解决了,掉了一个

    @PathVariable("seckillId")


  • qq_雾霭晨曦_0
    2018-06-15 22:30:08

    手动输入http://localhost:8080/seckill/1000/detail也会自动调回list页面,奇怪了

Java高并发秒杀API之web层

Java实现高并发秒杀API的第三门课,介绍Web层的设计和实现

66085 学习 · 395 问题

查看课程

相似问题