Loading

随笔分类 -  学习笔记

1
摘要:宏 该技术在其他语言中的类比 C/C++: #define Java: Annotation Processing print!("Hello, World"); #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] #[cfg_ 阅读全文
posted @ 2023-04-18 14:52 xtyuns 阅读(40) 评论(0) 推荐(0)
摘要:> 原文: https://kotlinlang.org/docs/getting-started.html ## 起步 Kotlin 是一个现代化且成熟的编程语言,旨在使开发者更加快乐。它简洁,安全,可以与 Java 和其他编程语言相交互,同时也提供了许多在多平台间复用代码的方法以实现高效编程。 阅读全文
posted @ 2022-11-19 16:54 xtyuns 阅读(76) 评论(0) 推荐(0)
摘要:工具 Wireshark 飞鸟嗅探 0825 NO.1 2022-09-21 22:17:57 SEND 163字节 [UDP-电脑QQ 192.168.0.18:4023->59.83.209.70:8000] 02 3B 17 08 25 2F 67 01 D0 4C 46 03 00 00 0 阅读全文
posted @ 2022-09-24 17:02 xtyuns 阅读(290) 评论(0) 推荐(0)
摘要:概述 OpenAPI 是一个规范(Specification),它定义了一种描述 API 的标准化格式,使得这些 API 更容易被人类阅读和机器解析,便于生成文档、测试、客户端代码等。这个规范以前被称为 Swagger 规范,但后来被捐赠给了 Linux 基金会。Swagger 还一系列遵循这些规则 阅读全文
posted @ 2021-12-09 22:11 xtyuns 阅读(960) 评论(0) 推荐(0)
摘要:# Java 8 Feature - Method References > 本文翻译自: [Java 8 Method Reference](https://www.javatpoint.com/java-8-method-reference) ## Method References 在 Jav 阅读全文
posted @ 2021-11-27 22:20 xtyuns 阅读(89) 评论(0) 推荐(0)
摘要:# Java 8 Feature - Lambda Expressions > 本文翻译自: [Java Lambda Expressions](https://www.javatpoint.com/java-lambda-expressions) ## Lambda Lambda 表达式是 Jav 阅读全文
posted @ 2021-11-27 20:57 xtyuns 阅读(64) 评论(0) 推荐(0)
摘要:# RabbiMQ ## In Spring 在 SpringBoot 中, 交换机、队列、Binding 等配置信息都是通过配置类中对应的 bean 来操作的, 生产者只关注向交换机发送消息, 消费者只关注从队列中取出消息 ![RabbitMQ-Spring](https://img2020.cn 阅读全文
posted @ 2021-11-19 19:25 xtyuns 阅读(128) 评论(0) 推荐(0)
摘要:> 本文代码内容较长, 查看总结内容可以直接拉到文章末尾 # RabbitMQ > AMQP: Advanced Message Queuing Protocol > 同步 RPC, 异步 MQ > RPC: 关注处理,及时获得调用结果,具有强一致性结果,关心业务调用处理结果 > MQ : 只关注通 阅读全文
posted @ 2021-11-17 20:15 xtyuns 阅读(50) 评论(0) 推荐(0)
摘要:SpringSecurity Authentication: 认证, 验证用户的身份并将用户身份信息 Authentication 对象放入 SecurityContext Authorization: 授权, 从 SecurityContext 取出 Authentication 对象判断是否拥有 阅读全文
posted @ 2021-11-04 09:09 xtyuns 阅读(167) 评论(0) 推荐(0)
摘要:Redis RDBMS: Relational Database Management System NoSQL: Not Only SQL Redis 优点 在内存中运行, 速度快 以单线程模式运行, 因此没有线程切换的额外开销, 也不需要锁机制, 没有资源竞争 采用了 IO 多路复用机制, 使其 阅读全文
posted @ 2021-10-29 13:31 xtyuns 阅读(69) 评论(0) 推荐(0)
摘要:# Docker vm: 创建操作系统实例 docker: 创建软件容器 > 无论是基于翻译和模拟的全虚拟化技术、半虚拟化技术,还是有了CPU硬件加持下的全虚拟化技术,其**虚拟化的目标都是一台完整的计算机,拥有底层的物理硬件、操作系统和应用程序执行的完整环境**。 > > 为了让虚拟机中的程序实现 阅读全文
posted @ 2021-10-25 20:49 xtyuns 阅读(69) 评论(0) 推荐(0)
摘要:SpringBoot 注解 @Autowired (ByType 优先, 多个同类型则使用 ByName) @Resource (ByName 优先, 未找到后使用 ByType 备选) @Configuration @Bean 这两个注解的作用是替代传统的 xml 配置文件 @Bean 的形参会自 阅读全文
posted @ 2021-10-25 20:45 xtyuns 阅读(31) 评论(0) 推荐(0)
摘要:基础命令 ls -lhd ls *.gif cp a.txt b.txt cp -r a b cat a.txt cat -n a.txt ln a.txt link-a.txt # 创建硬链接, 类似于 cp 但是会同步更新 ln -s a.txt link-a.txt # 创建软链接, 类似于一 阅读全文
posted @ 2021-10-25 20:41 xtyuns 阅读(27) 评论(0) 推荐(0)
摘要:我们在一般在配置 SSM 项目时会将 `DispatcherServlet` 的 `url-pattern` 配置为 `*.do`、 `*.action`、 `/*` 或 `/`, 今天就来分析一下它们的区别。以及 Tomcat 中内置的两个 Servlet: `DefaultServlet` 和 阅读全文
posted @ 2021-10-11 01:41 xtyuns 阅读(150) 评论(0) 推荐(0)
摘要:# SpringMVC spring-context 依赖于 spring-core + spring-beans + spring-aop + spring-expression spring-webmvc 依赖于 spring-context + spring-web ## 执行流程 ![Spr 阅读全文
posted @ 2021-09-30 13:01 xtyuns 阅读(23) 评论(0) 推荐(0)
摘要:# Spring ## 整体架构 [spring framework体系结构及模块jar依赖关系](https://www.jianshu.com/p/5b0c96975164) [Spring Framework 5 模块组成、体系结构、整体架构 - Jacian - 博客园](https://w 阅读全文
posted @ 2021-09-30 12:59 xtyuns 阅读(9) 评论(0) 推荐(0)
摘要:Mybatis 准备工作 使用 MyBatis 必须导入其 jar 包,在 maven 中的 pom.xml 中声明以下依赖。 <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java< 阅读全文
posted @ 2021-09-25 16:13 xtyuns 阅读(37) 评论(0) 推荐(0)
摘要:# Maven ## 相关文章 pom.xml 中 build 的配置: [Maven之pom.xml文件中的Build配置_剑小纯的夜话白鹭-CSDN博客](https://blog.csdn.net/xiaoyao2246/article/details/88355463) ## 概念 ### 阅读全文
posted @ 2021-09-23 21:27 xtyuns 阅读(59) 评论(0) 推荐(0)
摘要:Junit 5 总体架构 使用 Junit 5 如何在 Maven 中配置 Junit 5 的依赖: 咱的Maven项目能用Junit5吗? - 剑道子羽 - 博客园 案例演示: Junit5 新特性你用过多少? - 云+社区 - 腾讯云 系列教程: JUnit5学习之八:综合进阶(终篇)_程序员欣 阅读全文
posted @ 2021-09-23 09:27 xtyuns 阅读(64) 评论(0) 推荐(0)
摘要:推荐阅读文章: - [(很详细的使用教程) servlet入门+request和response+jackson - 一路繁花似锦绣前程 - 博客园](https://www.cnblogs.com/linding/p/13577955.html) - [JSP、EL和JSTL - 一路繁花似锦绣前 阅读全文
posted @ 2021-09-14 10:06 xtyuns 阅读(40) 评论(0) 推荐(0)

1