Skip to content

Commit

Permalink
fix :: Expected lookupPath in request attribute "org.springframework.…
Browse files Browse the repository at this point in the history
…web.util.UrlPathHelper.PATH".
  • Loading branch information
ecsimsw committed Mar 23, 2024
1 parent 9c9a4b1 commit c65ce0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/ecsimsw/fastcrud/core/dto/HandlerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.util.AntPathMatcher;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
import org.springframework.web.util.pattern.PathPatternParser;

public class HandlerInfo {

Expand All @@ -16,6 +17,7 @@ public HandlerInfo(CrudRequestHandler handlerInstance, RequestMethod httpMethod,
this.handler = handlerInstance;
var buildConfig = new RequestMappingInfo.BuilderConfiguration();
buildConfig.setPathMatcher(new AntPathMatcher());
buildConfig.setPatternParser(new PathPatternParser());
this.requestMappingInfo = RequestMappingInfo
.paths(requestPath)
.methods(httpMethod)
Expand Down

0 comments on commit c65ce0f

Please sign in to comment.