|
|
|
@ -11,6 +11,7 @@ import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
@ -61,8 +62,8 @@ public class FileController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET, value = "/getPdfNew")
|
|
|
|
|
public R getPdfNew(HttpServletRequest request, HttpServletResponse response) {
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET, value = "/{fileName}")
|
|
|
|
|
public R getPdfNew(HttpServletRequest request, HttpServletResponse response, @PathVariable("fileName") String fileName) {
|
|
|
|
|
InputStream in = null;
|
|
|
|
|
OutputStream out = null;
|
|
|
|
|
String path = request.getParameter("Path");
|
|
|
|
|