thisdcw
thisdcw
OK This is my recurrence case,use Shiro 2.0.4 and jdk17 ShiroConfig:  CustomRealm:  UserService:  User:  Controller:  finally, Post url result is "login success",This shouldn't happen. The...
Or do you need the java file instead of a screenshot? ```java package com.cw.shiro; import jakarta.annotation.PostConstruct; import jakarta.annotation.Resource; import org.apache.shiro.SecurityUtils; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.util.ThreadContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication;...
The code above is a minimal runnable example. ignore screenshot please
Do you need me to upload the code file directly?
ok Here is the link to my repro project [`[email protected]:thisdcw/cw-learn.git`](https://github.com/thisdcw/cw-learn) Thank you
OK I just uploaded the README.md file with the steps to reproduce the issue. If you need anything else, please let me know.
You can add a log in the `doGetAuthenticationInfo` method, which is called, and `userService.mockException()` is used to simulate the exception. It stands to reason that an exception occurs here and...
I guess what you mean is that I should catch the exception in the business instead of handing it over to Shiro... But I think this is a mishandling, because...
Sorry, I didn't express it clearly. This is indeed a springboot project. You need to use the API request tool to access the interface to reproduce the problem, so I...