升级springboot版本至2.6.16

升级springcloud alibaba版本至2021.0.5.0
升级springcloud版本至2021.0.5
移除ribbon,使用spring cloud loadbalancer
This commit is contained in:
整洁架构
2024-06-12 23:17:25 +08:00
parent 19022bdbe1
commit 6053a3f0ec
80 changed files with 445 additions and 822 deletions

View File

@@ -1,22 +1,22 @@
package com.gitee.sop.gateway;
import junit.framework.TestCase;
import org.apache.commons.lang.StringUtils;
/**
* @author tanghc
*/
public class ExcludeTest extends TestCase {
public void testRegex() {
String serviceId = "com.aaa.bbb.story-service";
String sopServiceExcludeRegex = "com\\..*;story\\-.*";
if (StringUtils.isNotBlank(sopServiceExcludeRegex)) {
String[] regexArr = sopServiceExcludeRegex.split(";");
for (String regex : regexArr) {
if (serviceId.matches(regex)) {
System.out.println("111");
}
}
}
}
}
//package com.gitee.sop.gateway;
//
//import junit.framework.TestCase;
//import org.apache.commons.lang3.StringUtils;
//
///**
// * @author tanghc
// */
//public class ExcludeTest extends TestCase {
// public void testRegex() {
// String serviceId = "com.aaa.bbb.story-service";
// String sopServiceExcludeRegex = "com\\..*;story\\-.*";
// if (StringUtils.isNotBlank(sopServiceExcludeRegex)) {
// String[] regexArr = sopServiceExcludeRegex.split(";");
// for (String regex : regexArr) {
// if (serviceId.matches(regex)) {
// System.out.println("111");
// }
// }
// }
// }
//}