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
解决了,掉了一个
@PathVariable("seckillId")
手动输入http://localhost:8080/seckill/1000/detail也会自动调回list页面,奇怪了
Java高并发秒杀API之web层
66085 学习 · 395 问题
相似问题