Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring Web can';t打开cmd.exe_Java_Spring_Web - Fatal编程技术网

Java Spring Web can';t打开cmd.exe

Java Spring Web can';t打开cmd.exe,java,spring,web,Java,Spring,Web,我可以毫无问题地从intellij idea打开cmd.exe,但在tomcat 9中部署后,我无法打开cmd.exe 代码: @RequestMapping(value=“/creator”,method=RequestMethod.GET) 公共字符串创建者(模型)引发IOException{ Runtime rt = Runtime.getRuntime(); Process process = rt.exec("cmd.exe /c start C:\\IPSC

我可以毫无问题地从intellij idea打开cmd.exe,但在tomcat 9中部署后,我无法打开cmd.exe

代码: @RequestMapping(value=“/creator”,method=RequestMethod.GET) 公共字符串创建者(模型)引发IOException{

    Runtime rt = Runtime.getRuntime();
    Process process = rt.exec("cmd.exe /c start C:\\IPSC_creator\\IPSC_creator.bat");

    return "redirect:/subdivision";
}
也许tomcat有安全设置

我需要使用这个函数