标签:style blog http color io os ar for sp
@Controller @RequestMapping("/Person") public class PersonManagerService { private Logger log = LoggerFactory.getLogger(PersonManagerService.class); @Resource private PersonManager myPersonManager; public PersonManager getMyPersonManager() { return myPersonManager; } public void setMyPersonManager(PersonManager personManager) { this.myPersonManager = personManager; } @RequestMapping(value="/searchPagePerson.do",method = RequestMethod.POST) public ModelAndView searchPagePerson(HttpServletRequest request, HttpServletResponse response){ *** }
对于采用上述方式访问运行过程中指定的路径找不到的问题,请查看spring配置的问题:
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/> <context:component-scan base-package="com.sinosoft.ie.aids.lab.samples.service"/>
这个必须要配的。
No mapping found for HTTP request with URI *(Spring mvc采用注释方式生成uri路径访问不到问题)
标签:style blog http color io os ar for sp
原文地址:http://www.cnblogs.com/braveliuchina/p/4050080.html