[spring-extensions] branch master updated: Add RequestMapping path and Controller annotation.

Scott Cantor cantor.2 at osu.edu
Wed Oct 16 09:43:24 EDT 2019


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository spring-extensions.

View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=918e45a767401af2f5abecb9162cf79bfcf36e6f

The following commit(s) were added to refs/heads/master by this push:
       new  918e45a   Add RequestMapping path and Controller annotation.
918e45a is described below

commit 918e45a767401af2f5abecb9162cf79bfcf36e6f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Oct 16 09:43:18 2019 -0400

    Add RequestMapping path and Controller annotation.
---
 .../java/net/shibboleth/ext/spring/error/ErrorRaisingController.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/net/shibboleth/ext/spring/error/ErrorRaisingController.java b/src/main/java/net/shibboleth/ext/spring/error/ErrorRaisingController.java
index 0ecdc63..5c9587e 100644
--- a/src/main/java/net/shibboleth/ext/spring/error/ErrorRaisingController.java
+++ b/src/main/java/net/shibboleth/ext/spring/error/ErrorRaisingController.java
@@ -22,11 +22,13 @@ import javax.servlet.http.HttpServletRequest;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
 
 /**
  * MVC controller for responding to errors by dispatching them to the MVC error handling umbrella.
  */
+ at Controller
 public class ErrorRaisingController {
 
     /** Class logger. */
@@ -39,7 +41,7 @@ public class ErrorRaisingController {
      * 
      * @throws Throwable 
      */
-    @RequestMapping
+    @RequestMapping(value = "/RaiseError")
     // Checkstyle: IllegalThrows OFF
     public void raiseError(@Nonnull final HttpServletRequest httpRequest) throws Throwable {
         

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list