问答详情
源自:4-1 基于bootstrap开发页面结构

index.jsp可以显示,list404(已解决,大家可以进来看看,这个问题应该很多朋友都会犯)

http://localhost:8080/seckill/list

The requested resource is not available.


10:48:26.653 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
10:48:26.759 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Class not found: org.jboss.vfs.VFS
10:48:26.759 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - JBoss 6 VFS API is not available in this environment.
10:48:26.761 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Class not found: org.jboss.vfs.VirtualFile
10:48:26.762 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.
10:48:26.763 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Using VFS adapter org.apache.ibatis.io.DefaultVFS
10:48:26.764 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Find JAR URL: file:/C:/eclipse工作环境/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/seckill/WEB-INF/classes/org/seckill/entity/
10:48:26.764 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Not a JAR: file:/C:/eclipse工作环境/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/seckill/WEB-INF/classes/org/seckill/entity/
10:48:26.805 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: Seckill.class
10:48:26.806 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: SuccessKilled.class
10:48:26.808 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Listing file:/C:/eclipse工作环境/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/seckill/WEB-INF/classes/org/seckill/entity/
10:48:26.808 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Find JAR URL: file:/C:/eclipse工作环境/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/seckill/WEB-INF/classes/org/seckill/entity/Seckill.class
10:48:26.808 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Not a JAR: file:/C:/eclipse工作环境/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/seckill/WEB-INF/classes/org/seckill/entity/Seckill.class
10:48:26.809 [http-apr-8080-exec-6] DEBUG org.apache.ibatis.io.ResolverUtil - Reader entry: ����

提问者:lc铭 2017-08-08 10:55

个回答

  • 慕侠9428322
    2019-11-15 16:00:52

    牛逼,感谢

  • 鲨鱼尖椒
    2018-09-05 15:04:29

    谢谢!但是不明白<a class="btn btn-info" href="${sk.seckillId}/detail" target="_blank">Link</a>中的${sk.seckillId}/detail前边为什么不加seckill呢?

  • JuanJuan思密达
    2018-06-14 17:46:38

    我也是一直报错

    https://img2.mukewang.com/5b2238b200018f8d17000670.jpg

    context root改成/了。也是一直404



  • __Rover
    2018-03-11 23:02:49

    感谢!!!

  • 编程之夜
    2017-10-08 22:23:53

    楼主,我index就无法显示了怎么办,用的是idea


  • 为中华崛起而学java
    2017-08-30 16:05:02

    为什么注释掉就可以啊?可否说一下!

  • 为中华崛起而学java
    2017-08-30 16:03:56

    感谢!网上找了半天,还是这里靠谱!

  • lc铭
    2017-08-08 11:03:27

    原因是因为SeckillController类外面加了@RequestMapping(value="/seckill"),注释掉就可以了。

  • lc铭
    2017-08-08 10:59:13

    已解决。

    我用的Eclipse,和老师用的IDEA不一样,项目跑起来的路径是:http://localhost:8080/Seckill/

    http://localhost:8080/Seckill/seckill/list      就是列表页。

    http://localhost:8080/Seckill/seckill/1000/detail  就是详情页。

    不过我列表页到详情页的Link是这样写的:<a class="btn btn-info" href="${sk.seckillId}/detail" target="_blank">Link</a>