问答详情
源自:4-1 Shiro集成Spring

一切按照步骤敲的代码 最后报404无法访问到登录页面

https://img.mukewang.com/5c1277c80001061e10730732.jpg这是spring.xml

https://img.mukewang.com/5c1277f9000159ec07190451.jpg这是springmvc.xml

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

这个是web.xml

https://img2.mukewang.com/5c1278680001e16111160451.jpg这是controller。各位大神给看看

提问者:幕布斯2518597 2018-12-13 23:19

个回答

  • 54Lanedy
    2019-04-23 15:52:52

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

    1、查看一下上面的resources root是否正确;

    2、web.xml中spring配置文件的classpath

  • 豆小豆1314
    2019-02-21 20:13:50

    你解决了吗? 我的也是找了好久 没发现哪儿有问题

  • 宝贝丶吥哭
    2018-12-23 23:04:11

    UserController里没写

    method = RequestMethod.POST


  • 幕布斯2518597
    2018-12-14 21:35:34

    https://img.mukewang.com/5c13b15b00011d0811250659.jpg

    https://img2.mukewang.com/5c13b17c0001366a13440870.jpgcustomRealm 请各位给看看到底是哪里出错了呢

  • qq_啊你说什么_03817997
    2018-12-14 13:43:54

    你的CustomRealm呢