Eclipse启动Tomcat Server报错 Could not publish to the server.String index out of range:-2
这是字符串的索引越界错误,比如字符串长度只有3,你非要截取5个长度,仔细看看报错的代码位置,检查下字符串的使用
检查subString(startIndex,endIndex)中endIndex的位置是否小于startIndex的位置
检查一下URL中是否有未编码的冒号