Wpis z mikrobloga

#programowanie #spring #java

Mam mały problem z RequestMapping i MatrixVariable

Przy Gdy wpisuje /GET/1/hi - działa bez problemy

Gdy wpisuje /GET/1;q=23/hi

INFO: 15:42:13.891 [http-listener-1(2)] DEBUG o.s.web.servlet.DispatcherServlet - DispatcherServlet with name 'appServlet' processing GET request for [/tut/GET/1/hi/]

INFO: 15:42:13.892 [http-listener-1(2)] DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Looking up handler method for path /hi/

INFO: 15:42:13.892 [http-listener-1(2)] DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Did not find handler method for [/hi/]

INFO: 15:42:13.893 [http-listener-1(2)] WARN o.s.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/tut/GET/1/hi/] in DispatcherServlet with name 'appServlet'

INFO: 15:42:13.893 [http-listener-1(2)] DEBUG o.s.web.servlet.DispatcherServlet - Successfully completed request

Problem leży na pewno tutaj - Did not find handler method for [/hi/]

Próbowałem zrobić to na kilka sposobów, ale nie potrafię sobie z tym poradzić, a rozwiązanie na pewno proste.

Controller

http://wklej.org/id/1374189/

servlet-content

http://wklej.org/id/1374192/