You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bd...@apache.org on 2020/11/04 20:48:22 UTC
[shiro-site] branch master updated: Add note about
ShiroUrlPathHelper in spring doc
This is an automated email from the ASF dual-hosted git repository.
bdemers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
The following commit(s) were added to refs/heads/master by this push:
new eda7b69 Add note about ShiroUrlPathHelper in spring doc
eda7b69 is described below
commit eda7b698b9821335521b03d6cc8a0d389a3bfc9c
Author: Brian Demers <bd...@apache.org>
AuthorDate: Wed Nov 4 15:48:13 2020 -0500
Add note about ShiroUrlPathHelper in spring doc
---
spring-framework.md.vtl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/spring-framework.md.vtl b/spring-framework.md.vtl
index b26b9ec..0c98c7a 100644
--- a/spring-framework.md.vtl
+++ b/spring-framework.md.vtl
@@ -72,6 +72,8 @@ Include the Shiro Spring web dependencies in you application classpath (we recom
#dependencies('web', [['org.apache.shiro', 'shiro-spring', "${latestRelease}"], ['org.apache.shiro', 'shiro-web', "${latestRelease}"],['org.springframework', 'spring-webmvc', '${spring.version}']])
+<a name="SpringFramework-WebConfig"></a>
+
Import the Shiro Spring configurations:
``` java
@@ -79,7 +81,8 @@ Import the Shiro Spring configurations:
@Import({ShiroBeanConfiguration.class,
ShiroAnnotationProcessorConfiguration.class,
ShiroWebConfiguration.class,
- ShiroWebFilterConfiguration.class})
+ ShiroWebFilterConfiguration.class,
+ ShiroRequestMappingConfig.class})
public class ApplicationConfig {
...
}
@@ -93,6 +96,7 @@ The above configurations do the following:
| org.apache.shiro.spring.config.ShiroAnnotationProcessorConfiguration | Enables Shiro's annotation processing |
| org.apache.shiro.spring.web.config.ShiroWebConfiguration | Configures Shiro Beans for web usage (SecurityManager, SessionManager, etc) |
| org.apache.shiro.spring.web.config.ShiroWebFilterConfiguration | Configures Shiro's web filter |
+| org.apache.shiro.spring.web.config.ShiroRequestMappingConfig | Configures Spring with Shiro's `UrlPathHelper` implementation to ensure URLs are processed the same both frameworks |
Provide a Realm implementation:
``` java