Home > other >  On Linux while reading data from the oracle database and somehow more Spaces!
On Linux while reading data from the oracle database and somehow more Spaces!

Time:12-31





String=basepath configService. GetProperty (" staticUrl "). The trim ();
String secpath=configService. GetProperty (" proImgUrl "). The trim ();
String IP=configService. GetProperty (" IP ");
String path=basepath + secpath;
System. The out. Println (path);
The File File=new File (path);
if (! File. The exists ()) {
System. Out.println (" * * * * * * + create file!" );
file.mkdirs();
}
List Files2=multiRequest. GetFiles (" filename ");
For (MultipartFile MultipartFile: files2) {
String fi=multipartFile. GetOriginalFilename ();
The String filename=UUID. RandomUUID ()
+ fi. Substring (fi) lastIndexOf (". "), fi, length ());
Try {
MultipartFile. TransferTo (new File (the path and filename));
String HTTPSRC=https://bbs.csdn.net/topics/request.getScheme () + "://" + IP + secpath
+ filename;
The code above:
Under the window to read data is normal, but after the project on the server, take it out will somehow more Spaces, folder can't create, in the foreground image address will be more Spaces, there are a great god answer?

CodePudding user response:

I also met with contrast tool is a ·, naked eye is a blank space, the building Lord finally found the problem cause

CodePudding user response:

Find the reason, my question is up sqlplus line width is too small to wrap, the Linux read it would be a space,
Solution: (size specified according to actual condition, the line lenient, it will be a newline)
The set linesize 500;
  • Related