1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

servlet 自动刷新

This commit is contained in:
wangkai 2019-02-23 13:18:34 +08:00
parent 44accccc8c
commit 40f1838ee2

View File

@ -125,7 +125,7 @@ redirect:低.
```java
Response.setHeader("Refresh","5;URL=http://localhost:8080/servlet/example.htm");
```
其中5为时间单位为秒。URL指定就是要跳转的页面如果设置自己的路径就会实现每过秒自动刷新本页面一次)
其中5为时间单位为秒。URL指定就是要跳转的页面如果设置自己的路径就会实现每过5秒自动刷新本页面一次)
## Servlet与线程安全