package com.tiesheng.database.utls; import cn.hutool.core.util.StrUtil; public class TieshengDbUtil { /** * 通过url获取table_schema * * @param url * @return */ public static String getTableSchema(String url) { return StrUtil.sub(url, url.lastIndexOf('/') + 1, StrUtil.indexOf(url, '?')); } }