mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
升级springcloud alibaba版本至2021.0.5.0 升级springcloud版本至2021.0.5 移除ribbon,使用spring cloud loadbalancer
23 lines
692 B
Java
23 lines
692 B
Java
//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");
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
//}
|