2019年7月26日

springboot整合netty

摘要: 1.pom.xml 通常的springboot 的pom文件有springboot-starter-web依赖,这样会为项目添加tomcat容器,端口8080,由于这个项目用netty,不需要tomcat,所以用 2.netty channelhandler线程安全问题和springboot单例模式 阅读全文

posted @ 2019-07-26 09:51 CreatorKou 阅读(1315) 评论(0) 推荐(0) 编辑

springboot单例模式的线程安全问题

摘要: 1.controller/model案例:https://www.jianshu.com/p/ce9415465ee4 2.netty + springboot netty channel的线程安全性与@Sharable 1. Bootstrap中直接添加sb.childHandler(new My 阅读全文

posted @ 2019-07-26 07:46 CreatorKou 阅读(3407) 评论(0) 推荐(1) 编辑

导航