使用以下代码获取以下错误:我正在通过 FileInputStream 构造函数中的完整添加传递文件名。例如:localhost:8080/projectName/OuterFolder/InnerFloder/example.doc
logger.info("File Path: "+ path+"/OuterFolder/InnerFloder/"+fileName);
POIFSFileSystem fs = new POIFSFileSystem(new
FileInputStream(path+"/OuterFolder/InnerFloder/"+fileName));
http:\localhost:8080\projectName\OuterFolder\InnerFloder\Example.doc (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.avi.service.UserService.createPolicy(UserService.java:1339)
at com.avi.service.UserService$$FastClassByCGLIB$$de8fbe27.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:617)
at com.avi.service.UserService$$EnhancerByCGLIB$$7c22f094_2.createPolicy(<generated>)
at com.avi.controller.TestController.openPolicy(TestController.java:2733)