0.0.1-SNAPSHOT
wangbing 5 years ago
parent 38472bcbb6
commit 9494418c3a

@ -105,6 +105,11 @@ public class GlobalController implements ErrorController {
case 404:
return "404";
case 403:
try {
LocalData.getResponse().sendRedirect("/login.htm");
} catch (IOException e) {
e.printStackTrace();
}
return "403";
case 500:
return "500";

@ -16,6 +16,7 @@ import com.example.frame.utils.LocalData;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
@ -101,6 +102,12 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
return true;
}
// try {
// LocalData.getResponse().sendRedirect("/login.htm");
// } catch (IOException e) {
// e.printStackTrace();
// }
return false;
}
};

@ -199,7 +199,7 @@
</style>
<script>
window.onload = function () {
var count = 4;
var count = 0;
function go() {
if (count > 0) {

Loading…
Cancel
Save

Powered by TurnKey Linux.