java正则表示判断。是否以某个关键字结尾的 String defaultPageSqlId = ".*ByPaging$"; System.out.println("dsdsdsdByPaging".matches(defaultPageSqlId));