原创 java調用ireport返回pdf需要用到的jar包和解決中文亂碼的問題

1:首先導入需要的jar包 <!-- ireport導表 --> <dependency> <groupId>net.sf.jasperreports</groupId>

原创 java獲取文件電腦路徑

URL url = Thread.currentThread().getContextClassLoader().getResource("META-INF/public/ymsweb/waybill/dispatchPrint/zhu

原创 java通過file讀取txt文件內容

String path="G:/test.txt"; File file = new File(path); // 要讀取以上路徑的input。txt文件 System.out.print

原创 如何用JAVA使用RabbitMQ,以及四種交換機的介紹

                                          四種交換的介紹 Direct Exchange 處理路由鍵。需要將一個隊列綁定到交換機上,要求該消息與一個特定的路由鍵完全匹配。這是一個完整的匹配。如果一

原创 原生POST請求並接受處理返回值

package com.example.study.util; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org.

原创 java調用沒有嵌套table的jasper文件生成PDF返回到頁面

@ResponseBody @RequestMapping(value = "/printing") public void printing(@RequestParam Map<String, String> queryParam

原创 idea+tomcat實現熱部署

1:修改idea配置 在setting界面,打開Debugger-HotSwap選項,確保勾選了Build project before reloading classes,同時選擇Reload classes after compila

原创 Resultful接口風格練習

首先編寫controller類 package com.example.study.controller; import com.example.study.entity.User; import org.springframewor