Tag:spring

  • Spring Web integration rabbitmq code instance

    Time:2020-4-6

    This article mainly introduces the spring Web integration rabbitmq code example. The example code is introduced in detail in this article, which has a certain reference learning value for everyone’s study or work. You can refer to the following for your friends Introduce java package: In this project, only four Java packages are introduced: amqp-client-5.7.3.jar, […]

  • Generate docx and PDF files based on FreeMarker template

    Time:2020-4-3

    The product requires to generate a word document and a PDF document respectively, which need to contain data. These data need to have corresponding styles such as font size, table, paragraph, etc. The initial idea was to use Apache POI, but after looking at the code of that large section of value filling operation, I […]

  • Timeout of zookeeper request in Dubbo: configuration of mybatis + spring connection to mysql8.0.15

    Time:2020-4-1

    I’m going to review Java in these two days, So write a shopping mall project with Dubbo to practice, but on the first test of the card, start the provider service and the consumer service, but the request interface always reports the timeout error of the zookeeper request (Dubbo + zookeeper server repeatedly calls three […]

  • Spring cloud gateway integrates sentinel to realize gateway current restriction

    Time:2020-3-31

    This article mainly introduces the integration of spring cloud gateway and sentinel to realize gateway current restriction. The example code is introduced in detail in this article, which has certain reference value for your study or work. You can refer to the following for your friends Note: sentinel can be used as the current limiting […]

  • After listening to API, let’s see what SPI is

    Time:2020-3-31

    Quotation Usually API can hear a lot? What is SPI? Don’t worry. Let’s first look at the call relationship of interface oriented programming to understand the similarities and differences between API and SPI. SPI understanding Let’s start with an official introduction: the full name of SPI (service provider interface) is a built-in service provision and […]

  • Microservice configuration center: Spring + mybatis + Druid + Nacos

    Time:2020-3-30

    In discussing service discovery and configuration with scenarios, we describe three typical application scenarios of Nacos configuration center, including how to use Nacos configuration center to control database connection information in spring boot, and how to use Nacos configuration center in “native” spring? In many web development based on spring MVC framework, spring + mybatis […]

  • Global exception handling in the web part of spring boot series

    Time:2020-3-30

    When there are exceptions in our back-end applications, we usually wrap the exceptions and return them to the caller or the front-end. In the actual project, it is impossible to handle exceptions in every place, and even elegant code may throw exceptions. How can we handle these exceptions gracefully in the spring project? This paper […]

  • Instance analysis of routing allocation code of spring cloud gateway

    Time:2020-3-29

    This article mainly introduces the example analysis of the routing distribution code of the spring cloud gateway. The example code is introduced in detail in this article, which has a certain reference value for your study or work. You can refer to the following for your friends 1. Create a new module based on the […]

  • Spring extension point: beanfactorypostprocessor and its sub interface

    Time:2020-3-25

    BeanFactoryPostProcessor BeanFactoryPostProcessorIt is a functional interface with only one method: @FunctionalInterface public interface BeanFactoryPostProcessor { void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException; } Take a look at the description on the doc document: Allows for custom modification of an application context’s bean definitions, adapting the bean property values of the context’s underlying bean factory. Application contexts can […]

  • Analysis of spring boot interceptor and filter instance

    Time:2020-3-25

    This article mainly introduces the spring boot interceptor and filter instance analysis. The example code is introduced in detail in this article, which has certain reference learning value for your study or work. You can refer to the following for your friends 1、 Interceptors and filters Before we talk about spring boot, let’s take a […]

  • Details of spring AOP execution sequence instances

    Time:2020-3-24

    This article mainly introduces the detailed explanation of spring AOP execution sequence examples. In this article, the example code is introduced in great detail, which has a certain reference learning value for your study or work. You can refer to the following for your friends As we all know, spring declarative transactions are implemented based […]

  • Analysis of spring boot using filter procedure

    Time:2020-3-24

    This article mainly introduces the process analysis of spring boot using filter. The example code in this article is very detailed. It has a certain reference value for your study or work. You can refer to the following for your friends First of all, let’s talk about the filter. The filter is the process of […]