Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error' for POST
My data is successfully inserted into the database but I still keep getting this error. It's performing okay but I'm irritated cause I keep getting this error.
This is my code:
$.ajax
(
type: 'post',
url: '/SendMessage',
data:
message_id: 0,
message_sender: user_id,
message_to: item,
message_info: message,
message_time: dateFormat,
message_seen: "NO"
,
success: function (response)
alert("success");
,
);
This is my controller:
private static final String PATH = "/error";
@RequestMapping(value="/SendMessage" , method=RequestMethod.POST)
public void sendMessage(Message message)
messageService.saveOrUpdate(message);
@RequestMapping(value= PATH)
public ModelAndView error404()
ModelAndView model = new ModelAndView("error/error404");
return model;
@Override
public String getErrorPath()
return PATH;
application.properties
spring.mvc.view.prefix= /WEB-INF/jsp/
spring.mvc.view.suffix= .jsp
server.error.whitelabel.enabled= false
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
Error:
Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error': public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.SubmitController.error404(), public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.WebsiteController.error404()
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:371) ~[spring-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE]
Hoping you could help me. Thank you so much!!!
spring-boot
|
show 1 more comment
My data is successfully inserted into the database but I still keep getting this error. It's performing okay but I'm irritated cause I keep getting this error.
This is my code:
$.ajax
(
type: 'post',
url: '/SendMessage',
data:
message_id: 0,
message_sender: user_id,
message_to: item,
message_info: message,
message_time: dateFormat,
message_seen: "NO"
,
success: function (response)
alert("success");
,
);
This is my controller:
private static final String PATH = "/error";
@RequestMapping(value="/SendMessage" , method=RequestMethod.POST)
public void sendMessage(Message message)
messageService.saveOrUpdate(message);
@RequestMapping(value= PATH)
public ModelAndView error404()
ModelAndView model = new ModelAndView("error/error404");
return model;
@Override
public String getErrorPath()
return PATH;
application.properties
spring.mvc.view.prefix= /WEB-INF/jsp/
spring.mvc.view.suffix= .jsp
server.error.whitelabel.enabled= false
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
Error:
Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error': public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.SubmitController.error404(), public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.WebsiteController.error404()
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:371) ~[spring-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE]
Hoping you could help me. Thank you so much!!!
spring-boot
What is the error?
– Jonathan Johx
Nov 12 '18 at 4:04
already added it :)
– trumanblack1025
Nov 12 '18 at 4:43
can you update this class codecom.rtc_insurance.controller.WebsiteController
?
– Deadpool
Nov 12 '18 at 4:47
what will I do?
– trumanblack1025
Nov 12 '18 at 5:13
Could you please share the code on WebsiteController?
– Jonathan Johx
Nov 12 '18 at 5:59
|
show 1 more comment
My data is successfully inserted into the database but I still keep getting this error. It's performing okay but I'm irritated cause I keep getting this error.
This is my code:
$.ajax
(
type: 'post',
url: '/SendMessage',
data:
message_id: 0,
message_sender: user_id,
message_to: item,
message_info: message,
message_time: dateFormat,
message_seen: "NO"
,
success: function (response)
alert("success");
,
);
This is my controller:
private static final String PATH = "/error";
@RequestMapping(value="/SendMessage" , method=RequestMethod.POST)
public void sendMessage(Message message)
messageService.saveOrUpdate(message);
@RequestMapping(value= PATH)
public ModelAndView error404()
ModelAndView model = new ModelAndView("error/error404");
return model;
@Override
public String getErrorPath()
return PATH;
application.properties
spring.mvc.view.prefix= /WEB-INF/jsp/
spring.mvc.view.suffix= .jsp
server.error.whitelabel.enabled= false
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
Error:
Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error': public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.SubmitController.error404(), public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.WebsiteController.error404()
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:371) ~[spring-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE]
Hoping you could help me. Thank you so much!!!
spring-boot
My data is successfully inserted into the database but I still keep getting this error. It's performing okay but I'm irritated cause I keep getting this error.
This is my code:
$.ajax
(
type: 'post',
url: '/SendMessage',
data:
message_id: 0,
message_sender: user_id,
message_to: item,
message_info: message,
message_time: dateFormat,
message_seen: "NO"
,
success: function (response)
alert("success");
,
);
This is my controller:
private static final String PATH = "/error";
@RequestMapping(value="/SendMessage" , method=RequestMethod.POST)
public void sendMessage(Message message)
messageService.saveOrUpdate(message);
@RequestMapping(value= PATH)
public ModelAndView error404()
ModelAndView model = new ModelAndView("error/error404");
return model;
@Override
public String getErrorPath()
return PATH;
application.properties
spring.mvc.view.prefix= /WEB-INF/jsp/
spring.mvc.view.suffix= .jsp
server.error.whitelabel.enabled= false
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
Error:
Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error': public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.SubmitController.error404(), public org.springframework.web.servlet.ModelAndView com.rtc_insurance.controller.WebsiteController.error404()
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:371) ~[spring-webmvc-5.0.9.RELEASE.jar:5.0.9.RELEASE]
Hoping you could help me. Thank you so much!!!
spring-boot
spring-boot
edited Nov 12 '18 at 6:18
trumanblack1025
asked Nov 12 '18 at 3:51
trumanblack1025trumanblack1025
759
759
What is the error?
– Jonathan Johx
Nov 12 '18 at 4:04
already added it :)
– trumanblack1025
Nov 12 '18 at 4:43
can you update this class codecom.rtc_insurance.controller.WebsiteController
?
– Deadpool
Nov 12 '18 at 4:47
what will I do?
– trumanblack1025
Nov 12 '18 at 5:13
Could you please share the code on WebsiteController?
– Jonathan Johx
Nov 12 '18 at 5:59
|
show 1 more comment
What is the error?
– Jonathan Johx
Nov 12 '18 at 4:04
already added it :)
– trumanblack1025
Nov 12 '18 at 4:43
can you update this class codecom.rtc_insurance.controller.WebsiteController
?
– Deadpool
Nov 12 '18 at 4:47
what will I do?
– trumanblack1025
Nov 12 '18 at 5:13
Could you please share the code on WebsiteController?
– Jonathan Johx
Nov 12 '18 at 5:59
What is the error?
– Jonathan Johx
Nov 12 '18 at 4:04
What is the error?
– Jonathan Johx
Nov 12 '18 at 4:04
already added it :)
– trumanblack1025
Nov 12 '18 at 4:43
already added it :)
– trumanblack1025
Nov 12 '18 at 4:43
can you update this class code
com.rtc_insurance.controller.WebsiteController
?– Deadpool
Nov 12 '18 at 4:47
can you update this class code
com.rtc_insurance.controller.WebsiteController
?– Deadpool
Nov 12 '18 at 4:47
what will I do?
– trumanblack1025
Nov 12 '18 at 5:13
what will I do?
– trumanblack1025
Nov 12 '18 at 5:13
Could you please share the code on WebsiteController?
– Jonathan Johx
Nov 12 '18 at 5:59
Could you please share the code on WebsiteController?
– Jonathan Johx
Nov 12 '18 at 5:59
|
show 1 more comment
2 Answers
2
active
oldest
votes
From the error it looks like you have declared multiple methods with the same url 'error' or same method signature.
So spring is not able to decide which url to map because it is getting multiple methods on same url.
I don't know why is it redirecting to /error page. Could you please help me?
– trumanblack1025
Nov 12 '18 at 4:41
add com.rtc_insurance.controller.WebsiteController.error404() code once.
– Alien
Nov 12 '18 at 4:47
I'm getting org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'basicErrorController' method
– trumanblack1025
Nov 12 '18 at 5:35
stackoverflow.com/questions/25356781/… see this
– Alien
Nov 12 '18 at 5:36
I already tried following the link you gave. I've updated my code above. It's still giving me an error
– trumanblack1025
Nov 12 '18 at 6:35
add a comment |
Assuming that the question is actually about the title of the question (Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error' for POST)
I can say that:
- Your controller and Ajax request are ok and are really irrelevant here
- There is a mapping on
/error
that appears in one of your controllers
Spring has its own error handling (that can be overridden but probably not like you've tried to do) and it also maps to /error
, so there is a clash of mappings here.
You can read more about spring boot error handling here (especially this part
can be relevant)
Update:
After you've updated the question, please take a look at com.rtc_insurance.controller.WebsiteController.error404
It must be your controller that is not compliant with spring boot error handling mechanisms mentioned in a links above in my answer
I haven't added any mapping for error yet.
– trumanblack1025
Nov 12 '18 at 4:45
It's appearing on every ajax post/get that I submit. :(
– trumanblack1025
Nov 12 '18 at 4:45
Check mapping ofcom.rtc_insurance.controller.WebsiteController.error404
and read the documentation that I've sent :) You'll see the reason
– Mark Bramnik
Nov 12 '18 at 4:46
Hey I've read the documentation and tried to update my code. Right now I'm getting a different error. I've updated my code above
– trumanblack1025
Nov 12 '18 at 6:22
so try to remove error404() method from the controller added in the question... the error should disappear. Since you read the documentation you know how to map it correctly now...
– Mark Bramnik
Nov 12 '18 at 6:42
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255734%2fambiguous-handler-methods-mapped-for-http-path-http-localhost8080-error-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the error it looks like you have declared multiple methods with the same url 'error' or same method signature.
So spring is not able to decide which url to map because it is getting multiple methods on same url.
I don't know why is it redirecting to /error page. Could you please help me?
– trumanblack1025
Nov 12 '18 at 4:41
add com.rtc_insurance.controller.WebsiteController.error404() code once.
– Alien
Nov 12 '18 at 4:47
I'm getting org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'basicErrorController' method
– trumanblack1025
Nov 12 '18 at 5:35
stackoverflow.com/questions/25356781/… see this
– Alien
Nov 12 '18 at 5:36
I already tried following the link you gave. I've updated my code above. It's still giving me an error
– trumanblack1025
Nov 12 '18 at 6:35
add a comment |
From the error it looks like you have declared multiple methods with the same url 'error' or same method signature.
So spring is not able to decide which url to map because it is getting multiple methods on same url.
I don't know why is it redirecting to /error page. Could you please help me?
– trumanblack1025
Nov 12 '18 at 4:41
add com.rtc_insurance.controller.WebsiteController.error404() code once.
– Alien
Nov 12 '18 at 4:47
I'm getting org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'basicErrorController' method
– trumanblack1025
Nov 12 '18 at 5:35
stackoverflow.com/questions/25356781/… see this
– Alien
Nov 12 '18 at 5:36
I already tried following the link you gave. I've updated my code above. It's still giving me an error
– trumanblack1025
Nov 12 '18 at 6:35
add a comment |
From the error it looks like you have declared multiple methods with the same url 'error' or same method signature.
So spring is not able to decide which url to map because it is getting multiple methods on same url.
From the error it looks like you have declared multiple methods with the same url 'error' or same method signature.
So spring is not able to decide which url to map because it is getting multiple methods on same url.
answered Nov 12 '18 at 4:38
AlienAlien
4,84331026
4,84331026
I don't know why is it redirecting to /error page. Could you please help me?
– trumanblack1025
Nov 12 '18 at 4:41
add com.rtc_insurance.controller.WebsiteController.error404() code once.
– Alien
Nov 12 '18 at 4:47
I'm getting org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'basicErrorController' method
– trumanblack1025
Nov 12 '18 at 5:35
stackoverflow.com/questions/25356781/… see this
– Alien
Nov 12 '18 at 5:36
I already tried following the link you gave. I've updated my code above. It's still giving me an error
– trumanblack1025
Nov 12 '18 at 6:35
add a comment |
I don't know why is it redirecting to /error page. Could you please help me?
– trumanblack1025
Nov 12 '18 at 4:41
add com.rtc_insurance.controller.WebsiteController.error404() code once.
– Alien
Nov 12 '18 at 4:47
I'm getting org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'basicErrorController' method
– trumanblack1025
Nov 12 '18 at 5:35
stackoverflow.com/questions/25356781/… see this
– Alien
Nov 12 '18 at 5:36
I already tried following the link you gave. I've updated my code above. It's still giving me an error
– trumanblack1025
Nov 12 '18 at 6:35
I don't know why is it redirecting to /error page. Could you please help me?
– trumanblack1025
Nov 12 '18 at 4:41
I don't know why is it redirecting to /error page. Could you please help me?
– trumanblack1025
Nov 12 '18 at 4:41
add com.rtc_insurance.controller.WebsiteController.error404() code once.
– Alien
Nov 12 '18 at 4:47
add com.rtc_insurance.controller.WebsiteController.error404() code once.
– Alien
Nov 12 '18 at 4:47
I'm getting org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'basicErrorController' method
– trumanblack1025
Nov 12 '18 at 5:35
I'm getting org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'basicErrorController' method
– trumanblack1025
Nov 12 '18 at 5:35
stackoverflow.com/questions/25356781/… see this
– Alien
Nov 12 '18 at 5:36
stackoverflow.com/questions/25356781/… see this
– Alien
Nov 12 '18 at 5:36
I already tried following the link you gave. I've updated my code above. It's still giving me an error
– trumanblack1025
Nov 12 '18 at 6:35
I already tried following the link you gave. I've updated my code above. It's still giving me an error
– trumanblack1025
Nov 12 '18 at 6:35
add a comment |
Assuming that the question is actually about the title of the question (Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error' for POST)
I can say that:
- Your controller and Ajax request are ok and are really irrelevant here
- There is a mapping on
/error
that appears in one of your controllers
Spring has its own error handling (that can be overridden but probably not like you've tried to do) and it also maps to /error
, so there is a clash of mappings here.
You can read more about spring boot error handling here (especially this part
can be relevant)
Update:
After you've updated the question, please take a look at com.rtc_insurance.controller.WebsiteController.error404
It must be your controller that is not compliant with spring boot error handling mechanisms mentioned in a links above in my answer
I haven't added any mapping for error yet.
– trumanblack1025
Nov 12 '18 at 4:45
It's appearing on every ajax post/get that I submit. :(
– trumanblack1025
Nov 12 '18 at 4:45
Check mapping ofcom.rtc_insurance.controller.WebsiteController.error404
and read the documentation that I've sent :) You'll see the reason
– Mark Bramnik
Nov 12 '18 at 4:46
Hey I've read the documentation and tried to update my code. Right now I'm getting a different error. I've updated my code above
– trumanblack1025
Nov 12 '18 at 6:22
so try to remove error404() method from the controller added in the question... the error should disappear. Since you read the documentation you know how to map it correctly now...
– Mark Bramnik
Nov 12 '18 at 6:42
add a comment |
Assuming that the question is actually about the title of the question (Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error' for POST)
I can say that:
- Your controller and Ajax request are ok and are really irrelevant here
- There is a mapping on
/error
that appears in one of your controllers
Spring has its own error handling (that can be overridden but probably not like you've tried to do) and it also maps to /error
, so there is a clash of mappings here.
You can read more about spring boot error handling here (especially this part
can be relevant)
Update:
After you've updated the question, please take a look at com.rtc_insurance.controller.WebsiteController.error404
It must be your controller that is not compliant with spring boot error handling mechanisms mentioned in a links above in my answer
I haven't added any mapping for error yet.
– trumanblack1025
Nov 12 '18 at 4:45
It's appearing on every ajax post/get that I submit. :(
– trumanblack1025
Nov 12 '18 at 4:45
Check mapping ofcom.rtc_insurance.controller.WebsiteController.error404
and read the documentation that I've sent :) You'll see the reason
– Mark Bramnik
Nov 12 '18 at 4:46
Hey I've read the documentation and tried to update my code. Right now I'm getting a different error. I've updated my code above
– trumanblack1025
Nov 12 '18 at 6:22
so try to remove error404() method from the controller added in the question... the error should disappear. Since you read the documentation you know how to map it correctly now...
– Mark Bramnik
Nov 12 '18 at 6:42
add a comment |
Assuming that the question is actually about the title of the question (Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error' for POST)
I can say that:
- Your controller and Ajax request are ok and are really irrelevant here
- There is a mapping on
/error
that appears in one of your controllers
Spring has its own error handling (that can be overridden but probably not like you've tried to do) and it also maps to /error
, so there is a clash of mappings here.
You can read more about spring boot error handling here (especially this part
can be relevant)
Update:
After you've updated the question, please take a look at com.rtc_insurance.controller.WebsiteController.error404
It must be your controller that is not compliant with spring boot error handling mechanisms mentioned in a links above in my answer
Assuming that the question is actually about the title of the question (Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/error' for POST)
I can say that:
- Your controller and Ajax request are ok and are really irrelevant here
- There is a mapping on
/error
that appears in one of your controllers
Spring has its own error handling (that can be overridden but probably not like you've tried to do) and it also maps to /error
, so there is a clash of mappings here.
You can read more about spring boot error handling here (especially this part
can be relevant)
Update:
After you've updated the question, please take a look at com.rtc_insurance.controller.WebsiteController.error404
It must be your controller that is not compliant with spring boot error handling mechanisms mentioned in a links above in my answer
edited Nov 12 '18 at 4:45
answered Nov 12 '18 at 4:42
Mark BramnikMark Bramnik
11.3k32445
11.3k32445
I haven't added any mapping for error yet.
– trumanblack1025
Nov 12 '18 at 4:45
It's appearing on every ajax post/get that I submit. :(
– trumanblack1025
Nov 12 '18 at 4:45
Check mapping ofcom.rtc_insurance.controller.WebsiteController.error404
and read the documentation that I've sent :) You'll see the reason
– Mark Bramnik
Nov 12 '18 at 4:46
Hey I've read the documentation and tried to update my code. Right now I'm getting a different error. I've updated my code above
– trumanblack1025
Nov 12 '18 at 6:22
so try to remove error404() method from the controller added in the question... the error should disappear. Since you read the documentation you know how to map it correctly now...
– Mark Bramnik
Nov 12 '18 at 6:42
add a comment |
I haven't added any mapping for error yet.
– trumanblack1025
Nov 12 '18 at 4:45
It's appearing on every ajax post/get that I submit. :(
– trumanblack1025
Nov 12 '18 at 4:45
Check mapping ofcom.rtc_insurance.controller.WebsiteController.error404
and read the documentation that I've sent :) You'll see the reason
– Mark Bramnik
Nov 12 '18 at 4:46
Hey I've read the documentation and tried to update my code. Right now I'm getting a different error. I've updated my code above
– trumanblack1025
Nov 12 '18 at 6:22
so try to remove error404() method from the controller added in the question... the error should disappear. Since you read the documentation you know how to map it correctly now...
– Mark Bramnik
Nov 12 '18 at 6:42
I haven't added any mapping for error yet.
– trumanblack1025
Nov 12 '18 at 4:45
I haven't added any mapping for error yet.
– trumanblack1025
Nov 12 '18 at 4:45
It's appearing on every ajax post/get that I submit. :(
– trumanblack1025
Nov 12 '18 at 4:45
It's appearing on every ajax post/get that I submit. :(
– trumanblack1025
Nov 12 '18 at 4:45
Check mapping of
com.rtc_insurance.controller.WebsiteController.error404
and read the documentation that I've sent :) You'll see the reason– Mark Bramnik
Nov 12 '18 at 4:46
Check mapping of
com.rtc_insurance.controller.WebsiteController.error404
and read the documentation that I've sent :) You'll see the reason– Mark Bramnik
Nov 12 '18 at 4:46
Hey I've read the documentation and tried to update my code. Right now I'm getting a different error. I've updated my code above
– trumanblack1025
Nov 12 '18 at 6:22
Hey I've read the documentation and tried to update my code. Right now I'm getting a different error. I've updated my code above
– trumanblack1025
Nov 12 '18 at 6:22
so try to remove error404() method from the controller added in the question... the error should disappear. Since you read the documentation you know how to map it correctly now...
– Mark Bramnik
Nov 12 '18 at 6:42
so try to remove error404() method from the controller added in the question... the error should disappear. Since you read the documentation you know how to map it correctly now...
– Mark Bramnik
Nov 12 '18 at 6:42
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255734%2fambiguous-handler-methods-mapped-for-http-path-http-localhost8080-error-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is the error?
– Jonathan Johx
Nov 12 '18 at 4:04
already added it :)
– trumanblack1025
Nov 12 '18 at 4:43
can you update this class code
com.rtc_insurance.controller.WebsiteController
?– Deadpool
Nov 12 '18 at 4:47
what will I do?
– trumanblack1025
Nov 12 '18 at 5:13
Could you please share the code on WebsiteController?
– Jonathan Johx
Nov 12 '18 at 5:59