05 2023 档案
摘要:代理模式 List<User> findByNameAndAge(@Param("name") String name, @Param("age") Integer age); <!-- 多个基本类型作为参数: 方式1: arg* : arg0, arg1 数字代表索引下标 parameterTyp
阅读全文
摘要:Mybatis Plus 源码分析 入口:com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration#afterPropertiesSetcom.baomidou.mybatisplus.autoconfigure.Myba
阅读全文
摘要:const text = ` 18 0.5 18 19 0.5S 19 20 1 20 21 2 21 22 3 22 23 0.25 23 24 1.5 24 25 2.5 25 26 3.5 26 27 5 27 28 10 28 29 20 29 30 A级 30 31 B级 31 32 C级
阅读全文
摘要:组合1 curl --location --request POST 'http://localhost:82/test/4' \ --header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VySWQiOjEsImFjY291bnQiOiJ
阅读全文
摘要:inputstream是一个Java中的输入流,它允许从源读取数据。如果要将inputstream转换为JSON,需要使用相应的解析器,例如GSON或Jackson。以下是使用GSON的示例代码: InputStream inputStream = ...; Gson gson = new Gson
阅读全文
摘要:Tomcat架构 连接器 Coyote Catalina容器 源码分析 启动流程 Tomcat请求处理流程 Tomcat是通过Mapper组件来完成这个任务。 Mapper组件的功能就是将一个URL定位到一个Servlet. Host容器里配置的域名、Context容器里的web应用路径,以及Wra
阅读全文