摘要: if you have error when execute below command, please try connect to the mobile hotspot (if you can't access the external network, like google) First, 阅读全文
posted @ 2024-01-23 08:35 坏男银 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 众所周知,我们可以从applicationContext根据name来获取bean,我曾一度以为bean就是bean自己,spring帮我们new出来的一个class对象,但当我读到下图这句话的时候,有点懵,getBean得到的为啥是代理对象??? 不过又一想,方法上有Transactional注解 阅读全文
posted @ 2024-01-17 09:37 坏男银 阅读(34) 评论(0) 推荐(0) 编辑
摘要: BIO(Blocking IO) 阻塞式同步IO 性能最差,响应最快 用户调用read,会阻塞并等待数据就绪,直到数据就绪,才返回 NIO(non-blocking IO) 非阻塞式同步IO (基本不会直接用)性能也差,因为要用户来轮询 用户需要来轮询是否数据就绪,调用read,如果数据未准备好,就 阅读全文
posted @ 2023-01-05 13:36 坏男银 阅读(16) 评论(0) 推荐(0) 编辑
摘要: <groupId>org.example</groupId><artifactId>MySpringStudy</artifactId><version>1.0-SNAPSHOT</version><properties> <maven.compiler.source>8</maven.compil 阅读全文
posted @ 2022-04-08 13:50 坏男银 阅读(358) 评论(0) 推荐(1) 编辑
摘要: 先上结论: Controller是spring 的一个bean,由spring的IOC来管理的一个bean Servlet是一个接口或者接口的实现(常见的是GenericServlet 和 HttpServlet) HttpServlet做的事情: 首先,有一个映射关系servlet-mapping 阅读全文
posted @ 2022-02-25 15:15 坏男银 阅读(2492) 评论(2) 推荐(0) 编辑
摘要: 转载自 https://www.toutiao.com/i6904868846055391751/?timestamp=1607907150&app=news_article&group_id=6904868846055391751&use_new_style=1&req_id=2020121408 阅读全文
posted @ 2022-02-09 09:21 坏男银 阅读(641) 评论(0) 推荐(0) 编辑