• Using typescript to implement lightweight Axios


    catalogue background Setting up the environment Build simple background to provide interface Install native Axios and use View the effect Analysis of parameters and return values Implementing Axios createInstance type definition The Axios class implements the get method Type declaration episode Axios class implements post method Implement error handling mechanism Simulate network exception Simulation timeout […]

  • Reasonable and standard usage of PageHelper in springboot + mybatis


    PageHelper 1、 Development preparation Original logo 1. Development tools IntelliJ IDEA 2020.2.3 2. Development environment Red Hat Open JDK 8u256 Apache Maven 3.6.3 3. Development dependence SpringBoot <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> MyBatis <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.3</version> </dependency> PageHelper <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.3.0</version> </dependency> 2、 Technical documentation Original logo 1. Based on springboot Springboot official document […]

  • In springboot project, how to use PageHelper pagination in a more standardized way?


      Synchronization source:In springboot project, how to use PageHelper pagination in a more standardized way?   1、 Development preparation 1. Development tools IntelliJ IDEA 2020.2.3 2. Development environment Red Hat Open JDK 8u256 Apache Maven 3.6.3 3. Development dependence SpringBoot org.springframework.boot spring-boot-starter-web MyBatis org.mybatis.spring.boot mybatis-spring-boot-starter 2.1.3 PageHelper com.github.pagehelper pagehelper-spring-boot-starter 1.3.0 2、 Technical documentation 1. Based on springboot Springboot official document […]

  • Ape combat 02: Spring MVC + Spring + mybatis + Maven + multi module framework construction


    Ape real combat is an original series of articles. Through the way of real combat, using the technology of front-end and back-end separation, combined with spring MVC spring mybatis, we can teach you to build a complete e-commerce system hand in hand. Following the tutorial, it is not a problem for you to become ape […]

  • spring AuthenticationInfo


    background HTTP protocol is stateless, that is, every message sent has no connection; This brings a problem: how to judge the login status of users? It’s impossible to re-enter the user name and password every time you request it. So people solve this problem by using the client cookie to save the sessionid and the […]

  • NETCORE implementation of 404 and 500 status code custom processing page


    In the process of using nercore to develop the framework, it is necessary to process the friendly prompt page of 404500 and other status codes. Referring to asp.net MVC, no application is provided_ Error and Application_ Beginrequest method will not intercept when the interceptor route does not match. However, NETCORE provides the use extension method […]

  • How does jfinal-weixin support official account configuration?


    The official account of official account is spring-boot-starter-weixin, which is a spring boot version of jfinal-weixin. It has been using jfinal-weixin as development kit before, and has never tried to support the multi official account. Recently, there is a demand for support of the multi public number. Find the source code, open it and find […]

  • Simple implementation of spring MVC framework based on Java


    preface In this paper, bloggers implement a simple framework step by step from servlet to controller layer. With this framework, we can use the following basic annotations as spring does: @XxgController @XxgRequestMapping @XxgParam @XxgRequestBody Before reading this article, you should probably understand the following: BeanUtils ObjectMapper Servlet related knowledge Idea: interceptor realizes route distribution. Using […]

  • Background basic template of vuejs2.0 vscode router


    I think it’s a good open source project, so I’ll collect data for detailed analysis to help more people step into the development of background system as soon as possible. In fact, there are two most basic and important things about background projectsAuthority verification and securityAbout vscode is a very popular editor Recently, I don’t […]

  • Cookie analysis for Android engineers


    preface Nice to meet you~ Cookie is added in HTTP version 1.1 to solve the problem of HTTPStateless characteristicTo make HTTP “stateful.”. When we are developing Android, we can’t understand the existence value and optimization of cookie very well. It’s normal. HTTP is a hypertext transfer protocol developed for web. As one of the functions, […]

  • Java handwritten redis from scratch (6) detailed explanation and implementation of redis AOF persistence principle


    preface Realizing redis from scratch in Java (1) how to realize fixed size cache? Realization of redis from scratch in Java (3) principle of redis expiration How to restart memory data without losing? Implementation of redis from scratch in Java Implementation of redis from scratch in Java We have implemented several features of redis,How to […]

  • Okhttp source code from the perspective of design patterns


    preface When it comes to source code, many friends find it complicated and difficult to understand. But what if it’s a high-quality source code library with clear structure and complete decoupling? OkHttpThis is such an existence. For this native network framework, you must have seen a lot of source code analysis. Its source code is […]