虚拟机建设网站,新网站怎么做才能可以在百度上搜索到,专业微网站电话,wordpress 附件目录参考: 参考地址
说明
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调用, 也能调用通过了.