[quote=引用 3 楼 suciver 的回复:] springMVC的配置,这些东西上网搜下到处都是
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"> <property name="useSuffixPatternMatch" value="false"/> </bean>
springMVC的配置,这些东西上网搜下到处都是
spring配置问题 <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"> <property name="useSuffixPatternMatch" value="false"/> </bean> 此处属性改为false 试试
前段时间做项目,出现过楼主类似的问题 通过ajax请求controller,给类级别添加了一个@RequwstMapping , 给方法上添加了一个@RequwstMapping, 在ajax中使用拼接起来的url请求不到后台,将类级别的@RequwstMapping 去掉后,就可以了,没有去研究为什么出现这种现象
81,122
社区成员
341,744
社区内容
加载中
试试用AI创作助手写篇文章吧