shiro-spring-boot-starter | 为shiro框架适配Spring Boot | Application Framework library
kandi X-RAY | shiro-spring-boot-starter Summary
kandi X-RAY | shiro-spring-boot-starter Summary
为shiro框架适配Spring Boot
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Spring filter factory bean
- Package - private for testing
- Returns the filter map
- Get filter chain definitions
- Gets the login url
- Gets the success url
- Gets the unauthorized URL
- Sets the security manager
- Set default session manager
- The realm bean
- Gets the realm
- The default AdvisorAutoProxyCreator
- Bean of the ApplicationAttributeSourceAdvisor bean
- Override the superclass to set the session creation flag
- Add a shiro filter
shiro-spring-boot-starter Key Features
shiro-spring-boot-starter Examples and Code Snippets
Community Discussions
Trending Discussions on shiro-spring-boot-starter
QUESTION
I am trying to integrate Spring Boot and Shiro. When I tried to call SecurityUtils.getSubject()
in one of my controllers, an exception occurred:
org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
I just followed some tutorials and docs to configure Shiro and here is my ShiroConfig
class:
ANSWER
Answered 2019-Jun-20 at 02:56Are you using the shiro-spring-boot-web-starter dependency instead of the shiro-spring-boot-starter dependency?
It looks like that is required for spring boot web applications according to this doc.
https://shiro.apache.org/spring-boot.html#Spring-WebApplications
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shiro-spring-boot-starter
You can use shiro-spring-boot-starter like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the shiro-spring-boot-starter component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page