Note that there are some explanatory texts on larger screens.

plurals
  1. PORequestMapping and Controller annotations. Controller is not being hit
    primarykey
    data
    text
    <p>I've a controller with @Controller and @RequestMapping annotations.</p> <pre><code>@Controller @RequestMapping(value = "/copyRightVersion") public class CopyrightAndVersionController extends BaseController { protected CopyrightAndVersionController() { super(CopyrightAndVersionController.class); } /** * Reads copyright and version from respective files. * * @return the model and view */ @RequestMapping(value = "/getVersion", method = RequestMethod.GET) public ModelAndView getCopyrightAndVersion() { LOGGER.debug("in getCopyrightAndVersion method"); ModelAndView mav = new ModelAndView("copyrightAndVersion"); mav.getModelMap().put("copyright", "test copyright"); mav.getModelMap().put("version", "test version"); return mav; } } </code></pre> <p>In logs I see that </p> <pre><code> DispatcherServlet with name 'xtreme' processing GET request for [/Xtreme/copyRightVersion/getVersion.do] Looking up handler method for path /copyRightVersion/getVersion.do Returning handler method [public org.springframework.web.servlet.ModelAndView com.xtreme.controller.CopyrightAndVersionController.getCopyrightAndVersion()] tableBeanFactory] - Returning cached instance of singleton bean 'copyrightAndVersionController' Last-Modified value for [/Xtreme/copyRightVersion/getVersion.do] is: -1 Successfully completed request </code></pre> <p>It never hits Controller's method getCopyrightAndVersion() though DispatcherServlet correctly identified handler for this. It doesn't print message in log. Even in remote debugging it is not hit.</p> <p>Am I missing something?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload