- 博客(58)
- 收藏
- 关注
原创 jdk安装
2、解压:sudo tar -zxvf OpenJDK8U-jdk_x64_linux_hotspot_8u462b08.tar.gz。window链接: https://pan.baidu.com/s/1NLgh1cx39aONxkgN5yunVA?linux链接: https://pan.baidu.com/s/1Dsb3u2jDZ6rAaQzqjmthQA?1、上传OpenJDK8U-jdk_x64_linux_hotspot_8u462b08.tar.gz至/app。
2025-10-20 16:47:21
309
原创 nginx安装
可选步骤[配置系统启动]:vi /etc/systemd/system/nginx.service。2、解压:tar -zxvf nginx-1.28.0.tar.gz。下载地址:https://nginx.org/download/1、上传nginx-1.28.0.tar.gz至/app目录下。
2025-10-20 16:31:41
181
原创 redis安装
可选[配置系统启动]:vi /etc/systemd/system/redis.service。7、修改后台启动:vi /usr/local/redis/bin/redis.conf。下载地址:https://download.redis.io/releases/2、解压:tar -zxvf redis-6.2.20.tar.gz。1、上传redis-6.2.20.tar.gz至/app目录下。daemonize no改成daemonize yes。
2025-10-20 16:24:48
269
原创 SpringBoot - 发布订阅(ApplicationListener和ApplicationEventPublisher)
SpringBoot - 发布订阅(ApplicationListener和ApplicationEventPublisher)
2023-03-28 16:51:33
649
原创 SpringBoot - 获取Web请求中Request和Response对象
SpringBoot - 获取Web请求中Request和Response对象
2023-03-10 08:01:46
602
原创 SpringCloud - Alibaba
SpringCloud - Alibaba项目聚合模块NacosSpring Cloud Alibaba Nacos DiscoverySpring Cloud Alibaba Nacos Config项目聚合模块版本依赖关系<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSch
2022-02-16 17:10:26
403
原创 排序算法(面试)
什么是程序?程序 = 算法 + 数据结构如何衡量一个算法的优劣性时间复杂度空间复杂度常数项时间:位运算比乘除快一些常用的排序算法1. 选择算法时间复杂度:n^2/** * <p> * 选择排序:每次循环找出最小的数下标放在数组最前面 * </p> * * @author sw * @data 2022/1/25 20:52 */public class Test { public static void main(String[
2022-02-07 16:12:32
403
原创 Spring-Boot - ApplicationEvent 与 ApplicationListener 的使用
继承ApplicationEvent抽象类后,HeartbeatEvent整个类就是信息的载体。实现ApplicationListener<信息类>接口后,可以监听响应信息。使用ApplicationContext.publishEvent发送事件,监听器会根据信息类型过滤出响应的信息...
2021-12-20 10:39:36
625
原创 服务配置 - Config
服务配置 - Config服务端导入依赖:<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-server</artifactId></dependency>yml配置:server: port: 8888spring: application: nam
2021-12-09 11:05:22
394
原创 熔断限流 - Hystrix
添加依赖: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency>主启动类添加: @EnableCircuitBreaker简单使用:/** * @author sw .
2021-10-29 16:21:42
130
原创 项目(模块)打包插件
项目打包插件有主程序时(一个小程序)没有主程序时(一个依赖jar)有主程序时(一个小程序) <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artif
2021-09-29 17:56:27
141
原创 文件导出问题 - 项目地址
文件导出Docx和Pdf文件导出Swagger2自动导出api文档Docx和Pdf文件导出Gitee地址:https://gitee.com/homelives/docx-and—pdf-file-exportSwagger2自动导出api文档Gitee地址:https://gitee.com/homelives/swagger2-document-generation
2021-09-26 10:28:46
145
原创 文件下载 - 中文名乱码问题
@ApiOperation("根据id获取文件流") @GetMapping("/fileStream/{fileId}") public void getFileOutStream(@PathVariable Long fileId, HttpServletRequest request, HttpServletResponse response) { InputStream inputStream = null; OutputStream outStrea
2021-09-26 10:05:21
168
原创 SpringBoot-MVC集中配置
@Configurationpublic class WebMvcConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("*"); }}
2021-09-08 18:15:34
127
原创 Mybatis-plus多表关联分页查询
Mapper层/** * 获取应用信息 * * @return */IPage<ModuleVo> getModules(IPage<ModuleVo> page, @Param("keyWord") String keyWord);Service层@Overridepublic IPage<ModuleVo> getPage(ModuleQueryParam param) { IPage<ModuleVo> page = new
2021-08-20 11:22:40
211
原创 网关 - Gateway
网关网关介绍自定义全局过滤器网关介绍自定义全局过滤器@Slf4j@Componentpublic class MyGatewayFilter implements GlobalFilter, Ordered { @Override public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { log.info("================进入过滤器=
2021-08-17 15:29:04
139
原创 DependencyManagement使用详解
DependencyManagement详细使用方法:https://blog.youkuaiyun.com/mark_to_win/article/details/88740948
2021-08-01 00:03:05
177
原创 MAVEN项目制定JDK编译版本
<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <encoding>UTF-8</encoding></properties>
2021-03-29 09:54:31
580
原创 Idea -集成Vue
Idea集成Vue:https://blog.youkuaiyun.com/lianghecai52171314/article/details/106113723Idea基于Eslint格式化代码:https://blog.youkuaiyun.com/zysen1995/article/details/107035499/
2021-03-19 21:44:03
108
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1