上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 48 下一页
摘要: 入队方法:put 和 offer put方法共做了以下情况的考虑:(1)队列已满,阻塞等待;(2)队列未满,创建一个node节点放入队列中,如果放完以后队列还有剩余空间,继续唤醒下一个添加线程进行添加。如果放之前队列中没有元素,放完以后要唤醒消费线程进行消费。 offer方法仅仅对put方法一点改动 阅读全文
posted @ 2023-06-11 15:11 iTao0128 阅读(44) 评论(0) 推荐(0)
摘要: 参考 https://blog.csdn.net/m0_57026595/article/details/123804578 阅读全文
posted @ 2023-06-07 22:20 iTao0128 阅读(16) 评论(0) 推荐(0)
摘要: 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> bean import boot.ann 阅读全文
posted @ 2023-06-07 22:08 iTao0128 阅读(293) 评论(0) 推荐(0)
摘要: 依赖 <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupId>c 阅读全文
posted @ 2023-06-05 22:33 iTao0128 阅读(113) 评论(0) 推荐(0)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> @RestController @Slf4j public 阅读全文
posted @ 2023-06-04 17:22 iTao0128 阅读(45) 评论(0) 推荐(0)
摘要: 添加ResourcesService,ResourcesServiceImpl,ResourcesDao和ResourcesDaoImpl类 public interface ResourcesDao { boolean readResources(String url, String passwo 阅读全文
posted @ 2023-06-04 16:37 iTao0128 阅读(53) 评论(0) 推荐(0)
摘要: @RestController @Slf4j public class Thread04 { @Autowired private OrderManage orderManage; @GetMapping("addOrder") public String addOrder(){ log.info( 阅读全文
posted @ 2023-06-04 12:04 iTao0128 阅读(21) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { ExecutorService executorService = Executors.newCachedThreadPool(); executorService.execute(new Runnable() { @ 阅读全文
posted @ 2023-06-04 09:25 iTao0128 阅读(62) 评论(0) 推荐(0)
摘要: 依赖 <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.4.1</version> </dependency> <dependency> <groupId>com.goo 阅读全文
posted @ 2023-05-29 21:48 iTao0128 阅读(30) 评论(0) 推荐(0)
摘要: 阿里云官网 1.登录官网https://www.aliyun.com/ 2.短信服务,申请签名 3.添加模板 项目中依赖 <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> 阅读全文
posted @ 2023-05-28 21:01 iTao0128 阅读(54) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 48 下一页