自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (3)
  • 收藏
  • 关注

原创 gitbook 3.2.3及之后流程图解决方案

gitbook 3.2.3及之后流程图解决方案原因:编写公司api接口文档使用gitbook时,想要绘画流程图,结果渲染不出来解决方案:引入插件“plugins”: [“mermaid-gb3”]流程图绘画AB在第2点实际的语法是这样子的这样就????️了...

2020-07-14 10:51:38 1123

原创 Spring的pageable对象接收分页参数时的字段与swagger上的不一致

Spring的pageable对象接收分页参数时的字段与swagger上的不一致在写分页接口时用到了pageable对象使用@PageableDefault注解可以达到收到默认分页参数的效果具体使用:sort = "created", direction = Sort.Direction.DESC然后在项目中使用的swagger来构建接口文档,在swagger上显示的pageable参数字段是但是实际接收参数的字段是:/** * Page index parameter name.

2020-05-29 14:39:06 1828

原创 Spring中@Validated的使用

Spring中@Validated的使用近期在写接口中,要对同一个bean进行自定义校验这就要用到@Validated这个注解了,使用:在类中定义自定义接口,主要是用于分组来校验不同字段 public interface VerifyOne { } public interface VerifyTwo { }之后将接口引入到定义校验的字段名上 @NotNull(groups = VerifyOne.class) @ApiModelProperty(value =

2020-05-27 11:51:34 1190

原创 There is no PasswordEncoder mapped for the id "null"

在spring-security登陆时报错:There is no PasswordEncoder mapped for the id “null”版本问题用spring-security5.0以上报错使用内存获取认证信息 auth .inMemoryAuthentication() .withUser("user").pa...

2019-06-11 11:10:49 662

原创 Springboot 集成 Activiti时启动报错!'org.activiti.spring.boot.SecurityAutoConfiguration

Springboot 集成 Activiti时启动报错!org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.activiti.spring.boot.SecurityAutoConfiguration': Initialization of bean failed;...

2019-05-17 10:34:56 6204

原创 linux上搭建kafka

首先要拥有java环境可以测试一下是否拥有java -version好啦! 开始下载kafkawget http://mirrors.cnnic.cn/apache/kafka/0.10.0.1/kafka_2.10-0.10.0.1.tgz解压tar -zxvf kafka_2.10-0.10.0.1.tgz解压后其实就可以了感谢并借鉴简书博客:https://...

2019-05-08 22:00:28 791

原创 logback中使用MDC自定义日志输出格式

logback-MDC相当于自定义日志格式输出写在过滤器中示例: try { Context context = createContext(request, response); processSysNo(request, response, context); processSeqNo(request, response, context); ...

2019-04-29 15:55:23 2980

原创 logback日志写入kafka

配置kafkakafka: bootstrap-servers: 127.0.0.1:9092 producer: retries: 0 batch-size: 16384 buffer-memory: 33554432 key-serializer: org.apache.kafka.common.serialization.St...

2019-04-25 21:58:07 1576

原创 springboot集成Kafka

kafka集成到springboot项目中依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web&l...

2019-04-25 21:56:21 145

原创 kafka入门学习使用

安装(mac版)1. 安装命令: brew install kafka出现: zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties & kafka-server-start /usr/local/etc/kafka/server.properties表示:安装成功2. 首先要启动zookeeper(博主...

2019-04-23 14:25:26 197

原创 MongoDB入门学习记录

数据库CollectionDocument概念解析术语mongoDb解释说明databasedatabase数据库tablecollection表/集合rowdocument数据/文档columnfield字段/域indexindex索引table joins表连接,MongoDB不支持primary ...

2019-04-22 14:59:30 190

原创 gateway替代zuul 遇到的bug:Parameter 0 of method hystrixGatewayFilterFactory in org.springframework.

gateway替代zuul 遇到的bug:Parameter 0 of method hystrixGatewayFilterFactory in org.springframework.首先我的依赖是这样的报错信息是:Parameter 0 of method hystrixGatewayFilterFactory in org.springframework。。。好一长串解决方案:...

2019-04-22 14:52:58 2408 1

原创 Java 1.8 stream,filter,map 练习

stream,filter,map 练习public class FunctionTest { private List&lt;Person&gt; people = null; @Before public void before() { Person wu = new Person("小鱼", 18, "男"); Person y...

2018-09-01 15:51:32 992

原创 Springboot自定义注解校验

Springboot自定义注解校验自定义注解类package com.kiet.springboot_project.setting;import com.kiet.springboot_project.configuration.FlagValidatorClass;import javax.validation.Constraint;import javax.vali...

2018-08-18 09:49:52 3180

原创 报错:could not extract ResultSet

调接口时报错: could not extract ResultSet原因:数据库字段与实体bean属性对不上

2018-08-16 16:01:37 69069

原创 使用fastjson修改json字符串数据

使用fastjson修改json字符串数据String jsonString = orderAppService.getItemJson(orderId); JSONArray jsonArray = JSONObject.parseArray(jsonString); for (Integer i = 0; i &lt; jsonArray.size();...

2018-08-13 09:44:28 5351

原创 实现Spring+SpringMVC+MyBatis的整合

maven依赖配置<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/m

2017-11-06 17:36:27 282

原创 Mybatis-逆向工程实现

generatorConfig.xml(配置文件)<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis

2017-11-06 16:49:06 411

资源文件中人事管理系统的sql文件

资源文件中人事管理系统的sql文件

2019-05-15

kafka实例资源

kafka集成springboot,简单的一个收发实例,kafka入门 kafka集成springboot,简单的一个收发实例,kafka入门

2019-04-26

基于SpringBoot企业人事管理系统

简单的人事管理系统,除了增删改查,还有一些发送邮件、发送短信、生成图表等功能,没有涉及到其他的高级的技术

2018-05-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除