Loading

摘要: https://zhuanlan.zhihu.com/p/346086161 前言 上一篇分享了JDK自带的线程池ThreadPoolExecutor的配置和参数详解,然而我们实际开发中更多的是使用SpringBoot来开发,Spring默认也是自带了一个线程池方便我们开发,它就是ThreadPoo 阅读全文
posted @ 2022-06-06 10:27 半瓶牛奶🥛 阅读(985) 评论(0) 推荐(0) 编辑
摘要: eg:https://blog.csdn.net/hanshanyunhai/article/details/121983861 @Test public class AsyncTestController { /** * @author LiuWY * @description 异步 * @dat 阅读全文
posted @ 2022-06-02 16:13 半瓶牛奶🥛 阅读(2420) 评论(0) 推荐(0) 编辑
摘要: SELECT a.id, a.name FROM user a ORDER BY CONVERT ( a.NAME USING GBK ); 阅读全文
posted @ 2022-06-01 22:30 半瓶牛奶🥛 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1.自动换行 阅读全文
posted @ 2022-01-26 14:06 半瓶牛奶🥛 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1.依赖 <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.10.0</version> </dependency> <dependency> <groupI 阅读全文
posted @ 2022-01-20 11:17 半瓶牛奶🥛 阅读(621) 评论(0) 推荐(0) 编辑
摘要: getLastRowNum()和getLastCellNum()的区别 获取行数getLastRowNum(),返回当前sheet页的最后一行的索引,索引是从0开始计数的 获取列数getLastCellNum(),返回的当前行最后一列的索引,索引是从1开始计数的 两个方法共同点是,一行也没有/一列也 阅读全文
posted @ 2021-07-21 09:35 半瓶牛奶🥛 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 基本介绍 Nginx 是一个高性能的 HTTP 和反向代理 web 服务器,同时也提供了 IMAP/POP3/SMTP 服务。 Nginx 是由伊戈尔·赛索耶夫为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本 0.1.0 发布于 2004 年 10 月 4 日。 Nginx 特 阅读全文
posted @ 2021-05-24 15:38 半瓶牛奶🥛 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 整合JDBCTemplate SpringBoot提供了JDBCTemplate,可以直接使用 @Service public class UserService { @Autowired JdbcTemplate jdbcTemplate; public Integer addUser(User 阅读全文
posted @ 2021-05-24 14:21 半瓶牛奶🥛 阅读(149) 评论(0) 推荐(0) 编辑
摘要: # SpringBoot整合aop @Component @Aspect //切面声明 public class LogComponent { // 标注拦截的方法 // 后面*的表示org.javaboy.aop.service目录下所有方法,方法入参为 数量任意,类型任意 @Pointcut(" 阅读全文
posted @ 2021-05-23 22:48 半瓶牛奶🥛 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 不使用框架监听器实现 在servlet/Jsp项目中,可以通过监听器来实现,ServletContextListener能够监听 ServletContext 对象的生命周期,实际上就是监听 Web 应用的生命周期。 @Component public class MyListener implem 阅读全文
posted @ 2021-05-23 21:05 半瓶牛奶🥛 阅读(302) 评论(0) 推荐(0) 编辑