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:45 UTC

[shiro-site] branch asf-site updated: publish update

This is an automated email from the ASF dual-hosted git repository.

bdemers pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/shiro-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 306f78e  publish update
306f78e is described below

commit 306f78eff49d647cb0482b81aa57060d5193a478
Author: Brian Demers <bd...@apache.org>
AuthorDate: Wed Nov 4 15:48:36 2020 -0500

    publish update
---
 spring-framework.html | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/spring-framework.html b/spring-framework.html
index c006f49..0809e37 100644
--- a/spring-framework.html
+++ b/spring-framework.html
@@ -337,12 +337,14 @@ compile 'org.springframework:spring-webmvc:${spring.version}'
 </code></pre>
     </div>
 </div>
+<a name="SpringFramework-WebConfig"></a>
 <p>Import the Shiro Spring configurations:</p>
 <pre><code class="java">@Configuration
 @Import({ShiroBeanConfiguration.class,
         ShiroAnnotationProcessorConfiguration.class,
         ShiroWebConfiguration.class,
-        ShiroWebFilterConfiguration.class})
+        ShiroWebFilterConfiguration.class,
+        ShiroRequestMappingConfig.class})
 public class ApplicationConfig {
   ...
 }
@@ -372,6 +374,10 @@ public class ApplicationConfig {
       <td>org.apache.shiro.spring.web.config.ShiroWebFilterConfiguration </td>
       <td>Configures Shiro&rsquo;s web filter </td>
     </tr>
+    <tr>
+      <td>org.apache.shiro.spring.web.config.ShiroRequestMappingConfig </td>
+      <td>Configures Spring with Shiro&rsquo;s <code>UrlPathHelper</code> implementation to ensure URLs are processed the same both frameworks </td>
+    </tr>
   </tbody>
 </table>
 <p>Provide a Realm implementation:</p>