Skip to content
Advertisement

Rest Controller method not getting called in spring boot

I am implementing rest webservice via a spring boot application.

POM

JavaScript

application.properties

JavaScript

Application launcher class

JavaScript

Controller

JavaScript

I see Did not find handler method for [/services/account] message in the console when I fire http://localhost:8082/services/account URL in the browser as shown below

JavaScript

I dont see message – ACCOUNT METHOD CALLED in the console meaning controller method is not getting invoked.Can you please let me know why createAccount() method not getting called ?
Is controller class getting identified/scanned by Spring factory?
What is causing this error?

Advertisement

Answer

Please change server.contexPath to server.contextPath.

And try again, it should work as there’s no extra config or code is there.

http://www.baeldung.com/spring-boot-application-configuration

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement