Spring Boot tutorial - swagger UI

Spring Boot tutorial - swagger UI 1. What is Swagger? Swagger Gamma The goal is to define a standard, language independent interface for REST APIs, so that people and computers can discover and understand the functions of various services without seeing the source code, documents or network traffic detection. When services are defined by swagge ...

Posted on Sat, 23 May 2020 09:55:48 -0700 by YorkshireSteve

tyboot simple function demonstration without sql encoding

tyboot simple function demonstration without sql encoding tybootdemo source https://gitee.com/magintursh/tybootdemo tyboot source: https://gitee.com/magintursh/tyboot https://github.com/magintursh/tyboot Example project interface screenshot The following are the interface features for this demonstration to demonstrate simple tyboot-based encod ...

Posted on Tue, 05 May 2020 03:38:28 -0700 by ukphoto

Spring Boot JAP + MySQL practice

Reference Using STS to create a Spring Boot project Create a new Spring Boot project, and select Web, JPA, MySQL and other options when creating the project. Configuration information in application.yml shitibean based on annotation Simple application based on JPA interface Multi table and multi condition dynamic combined query and paging and ...

Posted on Sat, 02 May 2020 00:50:20 -0700 by gloeilamp

Implementing websocket client instance by integrating okhttp with spin boot

There are many websocket server implementations on the Internet. The popular one is the spring boot starter websocket of spring boot itself. As for the client, the current popular one is the Java websocket framework. Here is an example of the okhttp framework: 1. Introduction of okhttp: <dependency> <groupId>com.squ ...

Posted on Wed, 29 Apr 2020 21:59:02 -0700 by jcubie

Elegant processing of data checks and return formats

Preface A back-end interface is roughly divided into four parts: interface address (url), interface request mode (get, post, and so on), request data (request), response data (response).How to build these parts is different for each company. There is no "must be the best" standard, but a good back-end interface is quite different fro ...

Posted on Thu, 23 Apr 2020 09:57:53 -0700 by discostudio

Custom groovy scripts generate PO entity classes for databases in IDEA

Complete code implementation at the bottom of the article Preface We may encounter the following problems: A small project of the company has been split into two services, API and Background Management, but since they share a database, there are many identical database entity definitions. Therefore, we have to provide the same entity definiti ...

Posted on Wed, 22 Apr 2020 20:04:52 -0700 by harkly

mapstruct best practices

The original link address of this article: http://nullpointer.pw/mapstruct%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5.html Preface According to the daily development habits, different JavaBean objects are used to transfer data for different domain layers to avoid mutual influence. Therefore, based on the database entity object User, objects such as Us ...

Posted on Sat, 21 Mar 2020 06:44:22 -0700 by BLottman

How to achieve unified exception handling in spring boot project

In a project, there are inevitably various exceptions. We hope that the exception information can be as detailed as possible, including the response status code, the response string exception information, and even the operation time, etc., so that we can easily and quickly locate the location where the exception occurs. Therefore, the exception ...

Posted on Sun, 08 Mar 2020 22:27:26 -0700 by MetaDark

[Spring Security + OAuth2 + JWT start to practice] 9. Sending verification code of SMS verification code

brief introduction By default, Security does not support SMS verification code login, so the whole authentication process needs to be developed by ourselves. Here we will explain in several articles. This article only completes sending mobile verification code SMS verification code entity class Spring security core project com.spring.securi ...

Posted on Tue, 03 Mar 2020 02:43:58 -0800 by aksival

Wechat JSAPI payment and refund

1, Call the unified order API and return the prepayment information Profile preparation JSAPi payment development document https://pay.weixin.qq.com/wiki/doc/api/JSAPi.php? Chapter = 7.u4 Introducing third-party wechat payment SDK <dependency> <groupId>cn.springboot</groupId> ...

Posted on Sat, 29 Feb 2020 23:56:30 -0800 by msore