乱码问题 测试步骤: 1、我们可以在首页编写一个提交的表单 <form action="/e/t" method="post"> <input type="text" name="name"> <input type="submit"> </form> ? 2、后台编写对应的处理类 @Control ...
分类:
其他好文 时间:
2021-06-30 17:32:30
阅读次数:
0
@GetMapping("/send") public String getmessage(HttpServletRequest request) { request.setAttribute("msg","跳转"); //设置参数 request.setAttribute("code",123); ...
分类:
编程语言 时间:
2021-06-29 16:08:05
阅读次数:
0
1.目录 2.service package main import ( "fmt" "net" ) func processConn(conn net.Conn) { for { //3.与客户端通信 var temp [128]byte n, err := conn.Read(temp[:]) ...
分类:
其他好文 时间:
2021-06-29 16:04:05
阅读次数:
0
原码反码补码这三个概念 对于正数(00000001)原码来说,首位表示符号位,反码 补码都是本身 对于负数(100000001)原码来说,反码是对原码除了符号位之外作取反运算即(111111110),补码是对反码作+1运算即(111111111) byte占8位,int占32位 也就是说在byte向 ...
分类:
其他好文 时间:
2021-06-29 16:03:23
阅读次数:
0
1.会编程,参考实验 1.1编程实现词频统计基本操作 主函数 public static void main(String[] args) throws Exception{ Configuration conf = new Configuration(); //程序运行时参数 String[] o ...
分类:
其他好文 时间:
2021-06-29 16:02:29
阅读次数:
0
this关键字含义 1. this代表什么 this代表对象, 代表的是当前对象, this里保存的是对象的地址. 谁是当前对象? 比如方法调用 t1.say() 在这个方法执行时 执行以下代码 : public String say() { return “姓名:” + name + “,年龄:” ...
分类:
编程语言 时间:
2021-06-29 16:00:27
阅读次数:
0
LCS 操作对象:两个长度不一定相等的字符串。 例题 string s, t; int f[maxn][maxn]; int main() { cin >> s >> t; int ls = s.length(), lt = t.length(); for (int i = 1; i <= ls; ...
分类:
其他好文 时间:
2021-06-29 15:57:12
阅读次数:
0
一、数组的创建和初始化 (一)创建数组: import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(Syste ...
分类:
编程语言 时间:
2021-06-29 15:56:03
阅读次数:
0
public class 数据类型学习 { public static void main(String[] args) { int i = 10; int i2 = 010;//8进制0 int i3 = 0x10;//16进制0x //long i4 = 40L; //Long类型要在数字后面加 ...
分类:
其他好文 时间:
2021-06-29 15:49:06
阅读次数:
0
为了能够深入理解SpringMVC,自己实现一个简单的"SpringMVC"。所有代码的实现都是为了快速构建SpringMVC的流程,理解要完成SpringMVC这样一个框架大概是什么样子的原理,而不是一比一的复刻。文中涉及到的源码有兴趣可以在评论联系我。 SpringMVC其实是在将Servlet ...
分类:
编程语言 时间:
2021-06-29 15:29:35
阅读次数:
0