changed toDoc redirect
This commit is contained in:
parent
7a25614be0
commit
5fb758e1d9
|
@ -56,10 +56,9 @@ public class UriResolverDocs {
|
||||||
pathInfo += "index.html";
|
pathInfo += "index.html";
|
||||||
|
|
||||||
ServletContext context = req.getServletContext();
|
ServletContext context = req.getServletContext();
|
||||||
//String realPath = context.getRealPath(pathInfo);
|
String realPath = context.getRealPath(pathInfo);
|
||||||
UriBuilder builder = UriBuilder.fromPath(context.getContextPath());
|
UriBuilder builder = UriBuilder.fromPath(realPath);
|
||||||
pathInfo=pathInfo.startsWith("/")?pathInfo:"/"+pathInfo;
|
// builder.path(pathInfo);
|
||||||
builder.path(pathInfo);
|
|
||||||
|
|
||||||
URI redirectTo = builder.build();
|
URI redirectTo = builder.build();
|
||||||
logger.info("redirecting to {}", redirectTo);
|
logger.info("redirecting to {}", redirectTo);
|
||||||
|
|
Loading…
Reference in New Issue