
springmvc
不喜 勿喷
不入流的程序猿
展开
-
RequestMappingHandlerMapping
public class ApiRequestMappingHandlerMapping extends RequestMappingHandlerMapping{ @Override protected RequestCondition<?> getCustomTypeCondition(Class<?> handlerType) { // 扫描类上的 @ApiVersion ApiVersion apiVersion =原创 2021-10-08 15:50:31 · 896 阅读 · 0 评论 -
org.springframework.web.servlet.DispatcherServlet noHandlerFound
1,url-pattern中的/*换成/(其实按照网上的教程一般不会怎么出错)2,运行时框架默认运行的是index.jsp文件所以当你想要使其他页面作为默认启动时要在web.xml中添加(welcome-file的值是你想要默认启动的页面)...原创 2020-03-08 10:47:54 · 217 阅读 · 0 评论