forked from DarkGao/UploadBigFile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUploadProgInfo.java
33 lines (25 loc) · 1.09 KB
/
UploadProgInfo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.dark.controller;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.PathVariable;
import com.dark.filter.MultiForm.ProgressInfo;
@Controller("uploadProgInfo")
@RequestMapping(value="/upload_prog")
public class UploadProgInfo {
//取得根节点板块
@RequestMapping(value="/{progId}",method=RequestMethod.GET)
public @ResponseBody ProgressInfo getProgInfo(
HttpServletRequest request,
@PathVariable("progId") String progId)
throws Exception{
ServletContext context = request.getSession().getServletContext();
//WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(context);
ProgressInfo progInfo=ProgressInfo.getProgressInfo(context, progId);
//System.out.println("progId="+progId+"__"+progInfo);
return progInfo;
}
}