使用 Postman 时,我必须将特殊字符 ('#') 哈希作为 URI 参数的一部分传递。
http://localhost:9082/client/rest/Retrieval/listemail?bookID= #1063
下面的 bookID 值没有传递到服务器。有人可以帮忙吗。
我有下面的代码块,它使用OpenCSV读取CSV文件并存储第7列.我面临的问题是我;在CSV文件中用作分隔符,但它也,用作分隔符.我怎么能避免这个?
由于我们从客户端获取了不可编辑的文件,因此无法将""置于CSV中.
CSVReader reader = null;
String[] nextCsvLine = new String[50];
String splitBy = ";";
int count = 0;
try {
StringReader sr = new StringReader(new String(in, offset, len));
reader = new CSVReader(sr);
while ((nextCsvLine = reader.readNext()) != null) {
for (String linewithsemicolon : nextCsvLine) {
log.debug("Line read : "+linewithsemicolon);
String[] b = linewithsemicolon.split(splitBy);
if (count==0){
count++;
continue;
}
else {
detailItems.add(b[7]);
log.debug("7th position: "+b[7]);
count++;
}
}
Run Code Online (Sandbox Code Playgroud)