项目启动成功但是进不去login.html

来源:4-1 Shiro集成Spring

qq_橙子_62

2018-07-04 15:14

04-Jul-2018 15:07:40.735 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\tomcat8\webapps\manager] has finished in [640] ms

04-Jul-2018 15:07:41.155 信息 [RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

这是日志!login.html报405错误

写回答 关注

2回答

  • 木偶匹诺曹
    2018-09-29 15:51:47

    <property name="loginUrl" value="/login.html"/>login.htnl前多一个斜杠

    然后再把他们的请求放行:/login.html=anon

  • 卿_das
    2018-07-05 18:05:13

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

    在spring.xml中要配置这句话,你配置了没?

Shiro安全框架入门

从零入门Shiro安全框架

48048 学习 · 347 问题

查看课程

相似问题