- 博客(13)
- 收藏
- 关注
原创 从零开始了解Spring Boot启动过程
大家平常在使用SpringBoot的时候可能都没有注意到,SpringBoot在项目启动过程中做的事情,大家平常也不会太关注,只是知道SpringBoot为Spring实现了自动装配的功能,但是如果要对SpringBoot有一个更深入的了解,我们需要知道SpringBoot在启动过程中究竟为我们完成了哪些事情,我们能不能扩展这些功能,以便我们实现自己的需求。
2023-02-09 14:11:39
2233
1
原创 第七步:整合MongDB(实现文档操作)
1 添加依赖 <!--MongDB相关依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> 2 修改SpringBoot配置文件 # MongDB配置 mongodb: host: loca
2021-01-06 15:57:05
125
原创 第六步:整合ElasticSearch(实现商品搜索)
1 添加依赖 <!--Elasticsearch相关依赖,spring-boot-parent 2.3.7.RELEASE--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> 2 修改S
2021-01-06 15:51:56
277
原创 第五步:整合SpringTask(实现定时任务)
1 添加依赖 由于SpringTask已经存在于Spring框架中,不需要额外添加依赖 2 添加Spring Task配置 package com.hzf.mymall.config; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableScheduling; /** * @author:010980380 * @date
2021-01-06 15:31:17
129
原创 第四步:整合SpringSecurity和JWT(实现认证和授权)
1 添加依赖 <!--SpringSecurity依赖配置--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <!--Hutool Java工具包--> <dependency>
2021-01-06 15:21:26
924
原创 第三步: 整合Redis(实现验证码缓存)
1 添加依赖 <!--redis--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 2 添加配置 在application.yml中添加redis配置 redis: host: localhost
2021-01-06 15:13:02
938
原创 第二步:整合Swagger3(实现线上API)
agger3 1 添加依赖 <!--Swagger-UI API文档生产工具--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> 2 添加注释 在SpringBoot
2021-01-06 15:09:51
912
1
原创 第一步:搭建项目基本框架
新建项目及基本配置 1 IDEA新建Spring Boot项目 先从Idea上新建项目,过程选项一直下一步就可以了,路径名等请自定义。 2 搭建项目文档结构骨架 规范的项目路径便于问题的定位及项目的维护 3 添加Springboot项目基本配置文件 在application.yml中添加数据源配置和mybatis的mapper.xml的路径配置。 server: port: 8080 spring: datasource: url: jdbc:mysql://localhost:330
2021-01-06 15:04:12
1935
原创 源码分析之HashMap
内部类 Node KeySet Values EntrySet HashIterator KeyIterator ValueIterator EntryIterator HashMapSpliterator KeySpliterator ValuesSpliterator EntrySpliterator TreeNode 成员 serialVersionUID DEFAULT_INITIAL_CAPACITY MAXIMUM_CAPACITY DEFAULT_LOAD_FACTOR TREEIFY_
2020-10-10 11:21:29
70
原创 HTTP——三次挥手与四次握手
目录 三次握手 四次挥手 TCP标志 三次握手 第一次握手:客户端将标志位置为1,随机产生一个值seq=J,并将该数据包发送给服务端,客户端进入SYN_SENT,等待服务器确认。 第二次握手:服务器端收到数据包后由标志位SYN=1知道客户端请求建立链接,服务器端将标志位SYN和ACK都置为1,ACK=J+1,随机产生一个值seq=K,并将数据包发送给客户端以确认连接请求,服务器进入SY...
2020-04-29 11:15:12
204
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人