background picture of the home page

小网馆

SpringBean作用域之间的区别

Spring 容器中的 bean 可以分为 5 个范围。所有范围的名称都是自说明的,但是为了避免混淆,还是让我们来解释一下:1.singleton:这种 bean 范围是默认的,这种范围确保不管接受到多少个请求,每个容器中只有一个 bean 的实例,单例的模式由 bean factory 自身来维护

thumbnail of the cover of the post

常用的docker-compose

点击下载docker-compose一、 Gitlabversion: '3'services: gitlab: restart: always image: gitlab/gitlab-ee:latest container_name: gitlab privileged

thumbnail of the cover of the post

GitHub加速

一、使用码云选择 从GitHub/GitLab中导入仓库。导入Github仓库地址。使用新的Gitee地址。https://gitee.com/a875667601/xxl-job.git二、使用cnpmjs镜像将github.com修改为github.com.cnpmjs.org。# 原仓库地址h

thumbnail of the cover of the post

Spring事件发布与监听

一、介绍在使用Spring构建的应用程序中,适当使用事件发布与监听的机制可以使我们的代码灵活度更高,降低耦合度。Spring提供了完整的事件发布与监听模型,在该模型中,事件发布方只需将事件发布出去,无需关心有多少个对应的事件监听器;监听器无需关心是谁发布了事件,并且可以同时监听来自多个事件发布方发布

thumbnail of the cover of the post

Docker搭建Nexus

一、下载镜像docker pull sonatype/nexus3二、启动镜像创建数据卷目录mkdir datachmod 777 datadocker-compose.yamlversion: '3'services: nexus: restart: always image: so

thumbnail of the cover of the post