1、实现方法为前端代码和后台Java代码结合
1.后端代码
@Controller
@RequestMapping("/productController")
public class ProductController extends BaseServiceImpl {
@RequestMapping(value = "/showPdf")
public String showPdf(HttpServletRequest request,HttpServletResponse response)throws Exception{
try {
// 图片服务器文件地址
String pdfUrl =" ";
URL url = new URL(pdfUrl);
HttpURLConnection conn