java调用shell脚本并传递参数

      最近业务上须要java调用执行shell脚本进行一些业务处理,写了个demo,记录下。java 主要代码linux @RequestMapping("/copy/database") @ResponseBody public String copyDatabase(HttpServletRequest request,String dbCode,String targetPath)
相关文章
相关标签/搜索