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

Merge pull request #159 from fantasygg/wk-branch

Fix:servlet 自动刷新
This commit is contained in:
SnailClimb 2019-02-23 17:32:32 +08:00 committed by GitHub
commit ebef8b3780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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