public abstract class BaseController
extends java.lang.Object
| 构造器和说明 |
|---|
BaseController() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.http.ResponseEntity<org.springframework.core.io.support.ResourceRegion> |
download(java.io.File file)
下载文件
|
protected org.springframework.http.ResponseEntity<org.springframework.core.io.support.ResourceRegion> |
download(java.io.File file,
java.lang.String fileName)
下载
|
protected org.springframework.http.ResponseEntity<org.springframework.core.io.support.ResourceRegion> |
download(org.springframework.core.io.Resource resource,
java.lang.String fileName)
下载
|
protected java.lang.String |
redirect(java.lang.String url)
redirect跳转
|
protected java.lang.String redirect(java.lang.String url)
url - 目标urlprotected org.springframework.http.ResponseEntity<org.springframework.core.io.support.ResourceRegion> download(java.io.File file)
throws java.io.IOException
file - 文件java.io.IOException - io异常protected org.springframework.http.ResponseEntity<org.springframework.core.io.support.ResourceRegion> download(java.io.File file,
java.lang.String fileName)
throws java.io.IOException
file - 文件fileName - 生成的文件名java.io.IOException - io异常protected org.springframework.http.ResponseEntity<org.springframework.core.io.support.ResourceRegion> download(org.springframework.core.io.Resource resource,
java.lang.String fileName)
throws java.io.IOException
resource - 资源fileName - 生成的文件名java.io.IOException - io异常