Loading

摘要: 什么是SpringBoot自动装配? SpringBoot方便在于我们需要第三方依赖直接引入starter即可,通过少量的注解和一些简单的配置就能使用第三方组件的功能。SpringBoot的核心就在于自动装配,带来了极大地方便。 SpringBoot是如何自动装配? SpringBoot 的核心注解 阅读全文
posted @ 2021-09-10 15:16 在贝加尔湖畔 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Map接口 HashMap 和 Hashtable 的区别 线程安全:hashmap非线性安全,hashtable线性安全(内部基本用synchronized修饰)。 效率:hashmap比hashtable效率好一点,hashtable弃用 键值对null支持:HashMap可存储 null 的 阅读全文
posted @ 2021-09-07 23:57 在贝加尔湖畔 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.下载maven包 https://maven.apache.org/download.cgi wget https://mirrors.bfsu.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz 2. 阅读全文
posted @ 2021-03-10 18:36 在贝加尔湖畔 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.redis6.0安装报错 server.c:5151:94: error: ‘struct redisServer’ has no member named ‘unixsocket’ serverLog(LL_NOTICE,"The server is now ready to accept c 阅读全文
posted @ 2021-02-17 12:04 在贝加尔湖畔 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 按照官网安装jenkins https://pkg.jenkins.io/redhat-stable/ sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo 阅读全文
posted @ 2020-09-20 01:16 在贝加尔湖畔 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 引入相应webflux包 实现自定义的请求处理类WebSocketHandler 配置url映射关系及WebSocketHandlerAdapter 通过页面进行测试 Server 要创建WebSocket服务器,您可以先创建一个MyWebSocketHandler实现WebSocketHandle 阅读全文
posted @ 2020-08-30 22:37 在贝加尔湖畔 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: tail date.log 输出文件末尾的内容,默认10行、 tail -20 date.log 输出最后20行的内容 tail -n -20 date.log 输出倒数第20行到文件末尾的内容 tail -n +20 date.log 输出第20行到文件末尾的内容 tail -f date.log 阅读全文
posted @ 2020-08-05 23:34 在贝加尔湖畔 阅读(587) 评论(0) 推荐(0) 编辑
摘要: RabbitMQ安装 下载Erlang的rpm包 RabbitMQ由Erlang语言编写,依赖Erang环境。 Erlang环境一定要与RabbitMQ版本匹配:https://www.rabbitmq.com/which-erlang.html Erlang下载地址:https://github. 阅读全文
posted @ 2020-07-23 22:06 在贝加尔湖畔 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 我们在使用多线程的时候,往往需要创建Thread类,或者实现Runnable接口,如果要使用到线程池,我们还需要来创建Executors,在使用spring中,已经给我们做了很好的支持。只要要@EnableAsync就可以使用多线程。使用@Async就可以定义一个线程任务。通过spring给我们提供 阅读全文
posted @ 2020-07-14 23:12 在贝加尔湖畔 阅读(35850) 评论(3) 推荐(26) 编辑
摘要: docker拉取nginx镜像 docker pull nginx 创建需要挂载的相应的挂载目录 mkdir -p nginx/conf mkdir -p nginx/html mkdir -p nginx/logs 创建nginx.conf文件 #user nobody; worker_proce 阅读全文
posted @ 2020-07-12 22:55 在贝加尔湖畔 阅读(274) 评论(0) 推荐(0) 编辑