浏览代码

feat:ws排除掉common的redis包

caoliqin 4 天之前
父节点
当前提交
ecf004970d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      fs-websocket/src/main/java/com/fs/websocket/FsWebSocketServiceApplication.java

+ 2 - 1
fs-websocket/src/main/java/com/fs/websocket/FsWebSocketServiceApplication.java

@@ -15,7 +15,8 @@ import org.springframework.context.annotation.FilterType;
 @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
 @ComponentScan(basePackages = {"com.fs"}, excludeFilters = {
         @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {com.fs.common.utils.RedisUtil.class,
-                com.fs.common.core.redis.RedisCache.class, com.fs.common.core.redis.RedisCacheT.class})
+                com.fs.common.core.redis.RedisCache.class, com.fs.common.core.redis.RedisCacheT.class}),
+        @ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.fs.common.core.redis.service.*")
         })
 public class FsWebSocketServiceApplication extends SpringBootServletInitializer {