网站开发工资咋样,东营在建项目,翻书效果网站,东莞企业营销推广参考: 参考地址
说明
ssm老项目,接过来别人的项目
临时建了一个Controller方便测试用的,结果访问掉不通,报: No mapping found for HTTP request with URIxxxx 这样的错误
解决办法
看了下web,xml配置 在 webmvc-config.xml 配置文件里面添加了几行配置
说明: com.iph.h…参考: 参考地址
说明
ssm老项目,接过来别人的项目
临时建了一个Controller方便测试用的,结果访问掉不通,报: No mapping found for HTTP request with URIxxxx 这样的错误
解决办法
看了下web,xml配置 在 webmvc-config.xml 配置文件里面添加了几行配置
说明: com.iph.hiring.headcount.api.service.* 是我Controller所在的地址, 酷酷一顿乱粘, 重启项目,发现好使了. context:annotation-config/context:component-scan base-packagecom.iph.hiring.headcount.api.service.*use-default-filtersfalsecontext:include-filter typeannotation expressionorg.springframework.stereotype.Controller/context:include-filter typeannotation expressionorg.springframework.context.annotation.Configuration/context:include-filter typeannotation expressionorg.springframework.web.bind.annotation.RestController//context:component-scanmvc:annotation-driven/mvc:default-servlet-handler/!-- 对模型视图名称的解析即在模型视图名称添加前后缀 --bean classorg.springframework.web.servlet.view.InternalResourceViewResolverproperty nameprefix value/WEB-INF/pages//property namesuffix value.jsp//bean启动项目观察控制台
发现有这个url地址了 然后用postman调用, 也能调用通过了.