![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java提升
其实是再学一遍
倾听雪的声音
这个作者很懒,什么都没留下…
展开
-
mysql数据表准备
#建表语句 create table students(sid char(10),name varchar(30),gender varchar(10) default "male",age int,score int); #插入数据 INSERT INTO students (sid,name,gender,age,score) VALUES ('S_1001', 'lili', 'male', 14,88); INSERT INTO students (sid,name,gender,age,scor原创 2021-06-28 20:48:03 · 188 阅读 · 0 评论 -
Java实现把 类的静态函数 提交到线程池里执行
public class Main { public static void main(String[] args){ ScheduledExecutorService service= Executors.newScheduledThreadPool(1); service.scheduleAtFixedRate(new myRunnable(Test::print),1,2, TimeUnit.SECONDS); ExecutorService原创 2021-03-18 20:14:12 · 176 阅读 · 0 评论 -
Netty 出入站处理器 实现 客户与服务器通信
Server: import io.netty.bootstrap.ServerBootstrap; import io.netty.buffer.ByteBuf; import io.netty.channel.*; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.nio.NioServerSocketCha原创 2021-03-14 21:58:15 · 104 阅读 · 0 评论