- 博客(10)
- 收藏
- 关注
原创 2023.5.12整理总结
注意:它在stopWatch.stop()执行前,stopWatch.start()不可执行多次,否则会报错。如上图,所谓匿名内部类,可以理解成是对局部内部类的进一步的深入,至于定义,我也暂未想出这么个写法的定义。如上图:执行顺序为: 父类静态代码块→子类静态代码块→父类构造→子类构造。如上图:什么是局部内部类?就是定义在方法里面的内部类。5、String类中startWith()方法的简单使用。如上图:理解什么是内部类?就是定义在一个类里面的类;4、Java类中 静态代码块和构造器的执行顺序。
2023-05-13 00:43:53
107
原创 解决:update更新用户锁定状态时,前端给后端的用户id与数据库实际用户id不符,造成无法更新用户状态问题
前端后进行数据交互时,由于数据类型造成的精度缺失问题的解决。springmvc消息对象转换器/消息转换器。
2022-08-25 00:04:59
1026
转载 spring注解:@RestController,@Controller,@RequestMapping,@ResponseBody
@RestController,@Controller,@RequestMapping,@ResponseBody
2022-08-22 01:48:23
146
原创 报错解决:Cannot call sendError() after the response has been committed
Cannot call sendError() after the response has been committed
2022-08-21 21:50:56
11936
1
原创 报错:create connection SQLException.../errorCode 1045, state 28000 java.sql.SQLException: Access den
数据库异常SQLException: Access denied for user 'root'@'localhost' (using password: YES)
2022-08-20 18:54:01
1227
原创 面试题3:线程的生命周期,以及为什么调用其start()时会执行run()方法,直接使用run()方法为什么不可?
线程生命周期&start()、run()方法的联系
2022-08-08 01:30:09
539
原创 C语言&初识数据结构
#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>struct student { int num; char name[20]; char sex;};int main() { struct student s; scanf("%d%s %c", &s.num, s.name, &s.sex); printf("%d %s %c\n", s.num, s.name, s.sex...
2022-05-06 23:20:37
330
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人