上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 服务端 public class MyService { public static void main(String[] args) throws IOException { ServerSocket socketService = new ServerSocket(9999); Socket s 阅读全文
posted @ 2021-11-16 20:10 yydssc 阅读(25) 评论(0) 推荐(0)
摘要: 注册中心 public class ServiceImpl implements Service { //注册中心 // map: 服务端的所有的 可供客户端访问的接口,都注册到改map中 // key: 接口的名字"HelloService" value: 真正的接口实现 private stat 阅读全文
posted @ 2021-11-14 22:30 yydssc 阅读(64) 评论(0) 推荐(0)
摘要: 服务端 public class SocketServiceImpl implements SocketService { @Override public String sayHi(String name) { return "Hi" + name; }客户端 public class Clien 阅读全文
posted @ 2021-11-14 22:28 yydssc 阅读(44) 评论(0) 推荐(0)
摘要: 动态数据源决策 public class DynamicDataSource extends AbstractRoutingDataSource { @Override protected Object determineCurrentLookupKey() { String datasource 阅读全文
posted @ 2021-11-07 21:11 yydssc 阅读(18) 评论(0) 推荐(0)
摘要: 一、 正常模块配置(具体参考dt模块) 涉及到文件 a. /system/service/config/impl/RegionServiceImpl.java b. /dt/controller/system/RegionController.java c. dt/resources/dev/app 阅读全文
posted @ 2021-11-07 21:11 yydssc 阅读(50) 评论(0) 推荐(0)
摘要: a、 job/pom.xml b、 /resources/dev/application-dev.yml c、 /job/config/MybatisPlusConfig.java d、 /job/config/DataSourceContextHolder.java e、 /job/config/ 阅读全文
posted @ 2021-11-07 21:09 yydssc 阅读(24) 评论(0) 推荐(0)
摘要: 新建数据库枚举,方便辨识 Mybatis配置 @Getter @AllArgsConstructor public enum DbSourceEnum { /** * 新加坡节点数据库 */ DATA_SOURCE_SG("sqlDataSourceSg","新加坡节点数据库"), /** * 德国 阅读全文
posted @ 2021-11-07 21:09 yydssc 阅读(20) 评论(0) 推荐(0)
摘要: @Aspect@Component@Order(1)@Slf4jpublic class Auth4PasswordAspect extends BaseAspect { /** * 指定有该注解,且在controller包下或子包下的接口 */ @Pointcut(value = "@within 阅读全文
posted @ 2021-10-30 19:34 yydssc 阅读(26) 评论(0) 推荐(0)
摘要: @Documented@Target({ElementType.TYPE, ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@Inheritedpublic @interface AccessAuth { UserTypeEnum[] v 阅读全文
posted @ 2021-10-30 19:34 yydssc 阅读(25) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/aligege/p/10221174.html 阅读全文
posted @ 2021-10-28 21:46 yydssc 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 下一页