You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
但与文件相关的操作,还是需要以Controller的形式暴露服务,因为涉及HttpServletResponse、ModelAndView、MultipartFile这些对象,如:
@PostMapping("/upload")
public Result uploadFile(@RequestParam("file") MultipartFile file) {
......
}
**问题:**请问dubbo可支持文件类型的操作,向外暴露服务,从而去除掉controller ?
The text was updated successfully, but these errors were encountered:
项目当前架构:
HTTP请求 -> 网关SpringCloudGateway -> 网关路由匹配 -> 网关dubbo泛化调用 -> dubbo服务
但与文件相关的操作,还是需要以Controller的形式暴露服务,因为涉及HttpServletResponse、ModelAndView、MultipartFile这些对象,如:
@PostMapping("/upload")
public Result uploadFile(@RequestParam("file") MultipartFile file) {
......
}
**问题:**请问dubbo可支持文件类型的操作,向外暴露服务,从而去除掉controller ?
The text was updated successfully, but these errors were encountered: