文章 2021-12-15 来自:开发者社区

Spring Boot & ES 实战,值得参考!

作者:废物大师兄 cnblogs.com/cjsblog/p/9756978.html1. 前言1.1. 集成方式Spring Boot中集成Elasticsearch有4种方式:REST ClientJestSpring DataSpring Data Elasticsearch Repositories本文用后面两种方式来分别连接并操作Elasticsearch1.2. 环境与配置服务端:e....

Spring Boot & ES 实战,值得参考!
文章 2021-12-15 来自:开发者社区

Spring Boot @Scheduled 定时任务实战

假设我们已经搭建好了一个基于Spring Boot项目,首先我们要在Application中设置启用定时任务功能@EnableScheduling。启动定时任务package com.scheduling; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigur....

Spring Boot @Scheduled 定时任务实战
文章 2021-12-14 来自:开发者社区

轻松上手 Spring Boot & Kafka 实战!

Java技术栈www.javastack.cn打开网站看更多优质文章Kafka集群安装、配置和启动Kafka需要依赖zookeeper,并且自身集成了zookeeper,zookeeper至少需要3个节点保证集群高可用,下面是在单机linux下创建kafka3个节点伪集群模式。1、下载包下载地址:http://kafka.apache.org/downloads2、解压包tar -zxvf ka....

轻松上手 Spring Boot & Kafka 实战!
文章 2021-12-13 来自:开发者社区

Spring Cloud Eureka 自我保护机制实战分析

前些天栈长在Java技术栈微信公众号分享过 Spring Cloud Eureka 的系列文章:Spring Cloud Eureka 自我保护机制Spring Cloud Eureka 常用配置详解其中,可能大家关于自我机制的具体保护逻辑还不是特别清楚,今天栈长就具体分析和实战一下,自我保护机制到底是怎么工作的。现在我们把保护机制开启:关注右上角的两个重要参数:我这里显示的数值如下:Renew....

Spring Cloud Eureka 自我保护机制实战分析
文章 2021-12-13 来自:开发者社区

Spring Data Redis 详解及实战一文搞定

SDR - Spring Data Redis的简称。Spring Data Redis提供了从Spring应用程序轻松配置和访问Redis的功能。它提供了与商店互动的低级别和高级别抽象,使用户免受基础设施问题的困扰。Spring Boot 实战引用依赖<dependency> <groupId>org.springframework.boot</group...

Spring Data Redis 详解及实战一文搞定
文章 2021-12-13 来自:开发者社区

Spring Boot Redis Cluster 实战干货

添加配置信息spring.redis: database: 0 # Redis数据库索引(默认为0) #host: 192.168.1.8 #port: 6379 password: 123456 timeout: 10000 # 连接超时时间(毫秒) pool: max-active: 8 # 连接池最大连接数(使用负值表示没有限制) max-id...

文章 2021-12-13 来自:开发者社区

Spring Boot 单元测试详解+实战教程

Spring Boot 的测试类库Spring Boot 提供了许多实用工具和注解来帮助测试应用程序,主要包括以下两个模块。spring-boot-test:支持测试的核心内容。spring-boot-test-autoconfigure:支持测试的自动化配置。开发进行只要使用 spring-boot-starter-test 启动器就能引入这些 Spring Boot 测试模块,还能引入一些像....

文章 2021-12-13 来自:开发者社区

Spring Boot Redis Cluster实战

添加配置信息spring.redis: database: 0 # Redis数据库索引(默认为0) #host: 192.168.1.8 #port: 6379 password: 123456 timeout: 10000 # 连接超时时间(毫秒) pool: max-active: 8 # 连接池最大连接数(使用负值表示没有限制) max-id...

文章 2021-12-12 来自:开发者社区

Spring Boot集成Shiro实战

Spring Boot集成Shiro权限验证框架,可参考:https://shiro.apache.org/spring-boot.html引入依赖<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring-boot-web-starter<...

文章 2021-12-11 来自:开发者社区

Spring Boot功能实战

添加web功能启动器添加了Spring Boot基础依赖后,如要使用web mvc功能,只需要添加如下启动器即可,Spring Boot会自动装配web功能。<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

微服务

构建可靠、高效、易扩展的技术基石

+关注