HttpServletResponse.sendRedirect public void sendRedirect(java.lang.String location) throws java.io.IOException Sends a temporary redirect response to the client using the specified redirect location URL. The URL must be absolute (for example, https://hostname/path/file.html). Relative URLs are not permitted here. Parameters: location - the redirect location URL Throws: java.io.IOException - If an I/O error has occurred.
public void sendRedirect(java.lang.String location)
throws java.io.IOException
Sends a temporary redirect response to the client using the specified redirect location URL. The URL must be absolute (for example, https://hostname/path/file.html). Relative URLs are not permitted here.
Parameters:
location - the redirect location URL
Throws:
java.io.IOException - If an I/O error has occurred.
我这么用的:String faillogin = "http://155.69.125.180/myproject/mydb/*.html";