String file = http://localhost:8888/upload/20190310/115111_58_592_HDFS读取文件的流程.png //截取文件名 String oriName = file .substring(file .lastIndexOf("_")+1);最后结果:HDFS读取文件的流程.png
Java截取最后一个 _ 后面的所有字符
原文:https://www.cnblogs.com/QW-lzm/p/10508176.html