-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Spring-boot-3-web won't start with spring Actuator active #1691
Comments
Here is an similar issue and some more information: spring-projects/spring-boot#31961 |
I've looked at your link attached, but I am not a Spring user, so PR would be appreciated |
The solution might be to just update org.apache.shiro.spring.web.config.ShiroRequestMappingConfig to take a list::
But I'm not aware of the implications of this change. I'm also not familiar to the Shiro ecosystem. I tried to update, but I got problems when trying to run it, due to some comparison of the API.
|
And should it be one |
Please submit a PR. I will help you get it to compile and "over the fence" |
I also encountered the same error when building a Spring Boot 3.3.4 project and adding the dependencies shiro 2.0.1 and actuator 3.3.4. |
Search before asking
Environment
Tested with Java 17, Ubuntu, started with
mvn spring-boot:run
Shiro version
2.0.1
What was the actual outcome?
Application will not start, due to
org.apache.shiro.spring.web.config.ShiroRequestMappingConfig
finding two RequestMappingHandlerMapping-beans.Output:
What was the expected outcome?
Spring acuator should be possible to use with Shiro.
How to reproduce
Add this dependency:
to the
spring-boot-3-web-sample
(https://github.com/apache/shiro/blob/main/samples/spring-boot-3-web/pom.xml)Run with
mvn spring-boot:run
Startup will fail.
Debug logs
The text was updated successfully, but these errors were encountered: