- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Socket传输为什么读的次数和写的次数不一致
在Socket通信中,数据往往会被分为多个数据包进行传输,每次发送的数据包大小由操作系统的套接字缓冲区决定。因此,发送方可能需要将多个数据块缓存起来,并将它们作为一个数据包一次性发送。而接收方同样需要使用缓冲区来接收和处理这些数据块。
2023-03-21 17:13:55
230
原创 SpringMVC的简单介绍
1.配置WEB-INF下面的xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmln
2020-12-26 19:43:48
150
2
原创 关于spring一些简单介绍
1.p标签xmlns:p="http://www.springframework.org/schema/p"p标签是根据set注入2.c标签xmlns:c="http://www.springframework.org/schema/c"c标签是根据构造方法注入3.spring默认是单例模式,可以用scope属性来设置(1)单例模式<bean id="student" class="com.pojo.Student" c:name="zhangsan" c:age="19" sco
2020-12-16 13:47:47
123
原创 关于Spring一些配置
Spring1.maven导包 <!-- spring包 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.2.0.RELEASE</version> </depen
2020-12-15 13:54:18
192
1
原创 test类名日常错误
测试类名问题测试里面的不能和项目里面的类重名假如写Spring写个Student类然后test里面的测试类也写Student就会报错错误图:目录图:所以测试类要*Test类名最好
2020-12-14 21:54:00
215
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人