遇到的问题
文章平均质量分 50
Java追求者
坚持每天学习!
展开
-
springboot项目引入通用mapper(tk.mybatis.mapper)的时候一些可能会踩的坑
springboot项目引入通用mapper(tk.mybatis.mapper)的时候一些可能会踩的坑不能将通用mapper泛型和实体mapper放在同一个包下进行扫描!原创 2022-01-29 00:25:33 · 955 阅读 · 0 评论 -
1、使用了并发工具类库,线程安全就高枕无忧了吗?
案例1背景我们知道,ThreadLocal 适用于变量在线程间隔离,而在方法或类间共享的场景。如果用户信息的获取比较昂贵(比如从数据库查询用户信息),那么在 ThreadLocal 中缓存数据是比较合适的做法。但,这么做为什么会出现用户信息错乱的 Bug 呢?存在问题案例@RestController@RequestMapping("/threadlocal")public class UserController { /** * 线程池中初始值默认为null */原创 2022-01-21 17:29:40 · 8140 阅读 · 0 评论 -
错误The server cannot or will not process the request due to something that is perceived to be a clien
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).请求参数不匹配,有可能是你的实体类属性数据类型与你定义的参数类型不匹配...原创 2020-05-16 09:58:58 · 2655 阅读 · 0 评论 -
查看win10端口号占用和处理
1. 查看端口号占用- 查看端口号使用命令:netstat -aon|findstr 80812. 根据进程PID查询应用3. 根据PID杀死进程3.1 方式一taskkill /pid 101003.2 方式二4. 杀死进程遇到的问题4.1 拒绝访问拒绝访问:表示权限不够,则需要由管理员身份才可以终止进程解决方案:对cmd右击选择以管理员的身份运行4.2 只能强行终止进程解决方案:在杀死进程的命令后加一个-F...原创 2021-05-17 01:04:28 · 235 阅读 · 0 评论
分享