spring boot jpa 配置多数据源 报
405 2023-04-03 04:58:26
let baseUrlStr = 'https://!@!@!@@@@@!@/lock?code=DWE34234';const queryURLParameter = (url) => { let regx = /([^&?=]+)=([^&?=]+)/g; let obj = {}; url.replace(regx, (...args) => { if (obj[args[1]]) { obj[args[1]] = Array.isArray(obj[args[1]]) ? obj[args[1]] : [obj[args[1]]]; obj[args[1]].push(args[2]); } else { obj[args[1]] = args[2]; } }); return obj;};console.log(queryURLParameter(baseUrlStr).code);