登录提交无效

来源:3-11 基于Apache Shiro权限管理Case实操-3-

会飞de牛

2019-01-02

2019-01-02 17:37:21.119  INFO 4308 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2019-01-02 17:37:21.559  INFO 4308 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)

2019-01-02 17:37:21.573  INFO 4308 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]

2019-01-02 17:37:21.575  INFO 4308 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.16

2019-01-02 17:37:21.893  INFO 4308 --- [ost-startStop-1] org.apache.jasper.servlet.TldScanner     : 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.

2019-01-02 17:37:21.898  INFO 4308 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext

2019-01-02 17:37:21.899  INFO 4308 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3715 ms

2019-01-02 17:37:22.847  INFO 4308 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

2019-01-02 17:37:23.225  INFO 4308 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup

2019-01-02 17:37:23.227  INFO 4308 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'dataSource' has been autodetected for JMX exposure

2019-01-02 17:37:23.234  INFO 4308 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located MBean 'dataSource': registering with JMX server as MBean [com.alibaba.druid.pool:name=dataSource,type=DruidDataSource]

2019-01-02 17:37:23.305  INFO 4308 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)

2019-01-02 17:37:23.312  INFO 4308 --- [           main] com.mmall.demo2.Demo2Application         : Started Demo2Application in 5.95 seconds (JVM running for 7.623)

2019-01-02 17:37:30.534  INFO 4308 --- [nio-8080-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'

2019-01-02 17:37:30.534  INFO 4308 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started

2019-01-02 17:37:30.559  INFO 4308 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 25 ms


Process finished with exit code -1

登录提交没反应

写回答

6回答

会飞de牛

提问者

2019-01-03

输错账号及密码是才会进入到doGetAuthenticationInfo方法中,后去到的user=null。

用admin账号登陆没后台返回如下:

2019-01-03 17:54:32.886 ERROR 11472 --- [nio-8080-exec-1] c.mmall.demo2.controller.TestController  : Test>>>>4>>>>>username>>>>>admin<<<<password<<<<123(loginUser
方法)

2019-01-03 17:54:32.985  INFO 11472 --- [nio-8080-exec-1] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited

最后跳到cahch 的 login页面。

0
0

会飞de牛

提问者

2019-01-03

//img.mukewang.com/szimg/5c2d94110001b56f12030730.jpg做了断点

0
0

Jimin

2019-01-02

你在catch那里加个断点看看代码是否走到那里了,如果是,看一下那里抛了什么异常,把异常发我看一下

0
0

会飞de牛

提问者

2019-01-02

后台没错误返回。启动成功后,访问localhost:8080/index页面,回自动跳到Login页面。填好用户名及密码后提交没反应。

0
0

会飞de牛

提问者

2019-01-02

后台没错误返回。启动成功后,访问localhost:8080/index页面,回自动跳到Login页面。填好用户名及密码后提交没反应。

0
0

Jimin

2019-01-02

你好,登陆没反应是请求没到后台,还是后台出错了?

0
0

Java开发企业级权限管理系统

源于企业真实Java项目,涉及大量高级技巧,覆盖权限管理开发技术

2264 学习 · 1347 问题

查看课程