
springboot
文章平均质量分 73
palm down
这个作者很懒,什么都没留下…
展开
-
微服务组件之nacos
文章目录nacos服务端的安装方式一、下载源码自己编译、安装方式二、下载编译好的源码,启动nacos服务端单机模原创 2022-04-14 21:49:09 · 838 阅读 · 0 评论 -
springcloud负载均衡之openfeign
文章目录springcloud openfeign概念:openfeign的使用openfeign文件传输 springcloud openfeign 官网地址https://spring.io/projects/spring-cloud-openfeign 概念: openfeign是springcloud的通讯组件 openfeign以http的形式调用rest接口,但openfeign的使用更像prc openfeigin内部集成了ribbon,实现负载均衡 openfeign的使用 在服务原创 2022-04-11 11:13:51 · 1179 阅读 · 0 评论 -
elasitcsearch从安装到集成springboot
文章目录springboot集成elasitcsearch安装elasticsearch安装kibana配置ik分词器插件kinaba使用springboot 2.3.2集成es 6.7.2一、添加依赖二、配置三、java restapi操作es springboot集成elasitcsearch 安装elasticsearch 下载地址:https://www.elastic.co/guide/en/elastic-stack/index.html 下载之后直接解压到相应目录 启动es bin目录下原创 2022-03-26 14:01:08 · 3129 阅读 · 0 评论 -
springboot基于RequestBodyAdvice和ResponseBodyAdvice实现请求和返回加解密
RequestBodyAdvice 我们看下RequestBodyAdvice的源码 /** * Allows customizing the request before its body is read and converted into an * Object and also allows for processing of the resulting Object before it is * passed into a controller method as an {@code .原创 2021-10-25 10:01:52 · 864 阅读 · 0 评论 -
mybatis-plus LocalTime查询不到数据
create table room_time_unit ( id bigint unsigned auto_increment comment '主键' primary key, code int not null comment '时间段code', hour int not null comment '小时', step int原创 2021-05-13 16:13:36 · 1603 阅读 · 5 评论 -
springboot项目mybatis plus使用枚举字典
mybatis plus 枚举类型 添加mybatis-plus依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>${mybatis.plus.versi原创 2021-04-06 10:08:57 · 2010 阅读 · 0 评论 -
springboot自动配置原理
启动类 package com.liouwb.springbootdemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * @author liouwb */ @SpringBootApplication public class SpringbootDemoApplication {原创 2020-11-11 20:35:39 · 155 阅读 · 2 评论 -
springboot集成mybatis-plus
官网https://baomidou.com/ 一、添加依赖 <!--mybatis-plus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus</artifactId> <version>3.4.0</version> </dependency> <depend.原创 2020-11-06 13:06:18 · 346 阅读 · 1 评论 -
springboot项目入门
springboot项目入门 springboot概念 Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”. 官方网站:https://spring.io/projects/spring-boot 构建项目 方式一、在线构建项目 构建springboot项目 在线构建地址:https://start.spring.io原创 2020-11-05 12:45:36 · 143 阅读 · 0 评论 -
springboot集成knife4j(swagger2)
springboot集成knife4j(swagger2) 一、在maven pom.xml文件中添加knife4j依赖 方式一、添加knife4j-starter只需要添加一个即可 <!--knife4j--> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId&原创 2020-11-04 09:22:42 · 1392 阅读 · 0 评论 -
springboot使用validator参数校验
pom.xml文件添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> 在请求实体类在校验绑定 import io.swagger.annotations.ApiModelProperty; import原创 2020-11-03 17:57:09 · 551 阅读 · 0 评论