- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Socket传输为什么读的次数和写的次数不一致
在Socket通信中,数据往往会被分为多个数据包进行传输,每次发送的数据包大小由操作系统的套接字缓冲区决定。因此,发送方可能需要将多个数据块缓存起来,并将它们作为一个数据包一次性发送。而接收方同样需要使用缓冲区来接收和处理这些数据块。
2023-03-21 17:13:55
252
原创 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
165
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
135
原创 关于Spring一些配置
Spring 1.maven导包 <!-- spring包 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.2.0.RELEASE</version> </depen
2020-12-15 13:54:18
214
1
原创 test类名日常错误
测试类名问题 测试里面的不能和项目里面的类重名 假如写Spring写个Student类 然后test里面的测试类也写Student就会报错 错误图: 目录图: 所以测试类要*Test类名最好
2020-12-14 21:54:00
226
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人