| | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * web文件上传示例 |
| | | * web文件上传 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | |
| | | |
| | | @Value("${dy.webFile.fmUrl}") |
| | | private String fmUrl ; |
| | | //支持的文件类型 |
| | | |
| | | //支持的文档文件类型 |
| | | @Value("${dy.webFile.supportedFileTypes}") |
| | | private String supportedFileTypes ; |
| | | |
| | |
| | | */ |
| | | @PostMapping("/upPhoto") |
| | | @SsoPowerAop(power = "-1") //登录与权限同时验证 |
| | | //https://blog.zhengru.top/posts/33486.html#%E5%8D%95%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0 |
| | | //参考: https://blog.zhengru.top/posts/33486.html#%E5%8D%95%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0 |
| | | public BaseResponse<?> upPhoto(MultipartFile file) { |
| | | try { |
| | | if (file != null) { |