MyBatis can be said to be the most mainstream Spring persistence layer framework at present. This paper mainly discusses the underlying principle of Spring boot integration with MyBatis. Complete code can be moved Github.
How to use MyBatis
In general, how should we integrate MyBatis in a spring boot project?
Introducing MyBatis dependenc ...
Posted on Thu, 23 Apr 2020 22:06:52 -0700 by thines
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
The Gin framework allows developers to add the user's own Hook function in the process of processing requests. This Hook function is called middleware, which is suitable for handling some common business logic, such as login authentication, permission verification, data paging, logging, time-consuming statistics, etc
Posted on Tue, 21 Apr 2020 07:21:23 -0700 by xfezz
Wechat applet framework: Taro
To build a framework for wechat applets, there are several mainstream ones:
Official WePY: https://tencent.github.io/wepy/document.html#/
mpvue of meituan: http://mpvue.com/mpvue/#-html
Taro of Jingdong: https://taro.aotu.io/
The first two are Vue style, Taro is React
In order to learn, this article us ...
Posted on Mon, 20 Apr 2020 23:01:52 -0700 by toms
In the process of learning PyQt5, I will continue to do some small demos for better understanding and learning. This time, I want to do a picture viewer. The main functions include opening pictures, dragging pictures, zooming in and zooming out pictures.
The final image viewer is as follows:
2, Main steps
1. Display pictu ...
Posted on Mon, 20 Apr 2020 09:01:20 -0700 by jonathen
github address: https://github.com/liangfengbo/vue-cli-project Click to enter
The configured vuejs family bucket project has been built to uniformly manage the back-end interface | get data | request data, including Vue router, vuex, api, Axios. Webback, Vue LS for storage, asynchronous async/await, css less. Download and u ...
Posted on Mon, 20 Apr 2020 07:09:46 -0700 by MaDSEGA
Recently, you have encountered a problem with GC in your work: a lot of objects are created repeatedly in your project, causing a huge amount of GC work and frequent CPU dropouts.Prepare to use sync.Pool to cache objects and reduce GC consumption.In order to make it easier to use, I specially studied it to form this article.This article from th ...
Posted on Sun, 19 Apr 2020 19:43:34 -0700 by tshafer
When I first contacted java, I was confused about the relative path of a File and which directory to use as a reference.
With the development of io model, nio in java 1.7 uses Path, Paths and Files to facilitate the operation of io.
ClassLoader is used to get the io of the class file, and we can also use it to get the io of the file, so ...
Posted on Sun, 19 Apr 2020 03:55:54 -0700 by danj
My LeetCode: https://leetcode-cn.com/u/ituring/
My LeetCode brush Title source [GitHub]: https://github.com/izhoujie/Algorithmcii
LeetCode 56. Consolidated intervals
Given a set of intervals, merge all overlapping intervals.
Input: [[1,3], [2,6], [8,10], [15,18]]
Output: [[1,6], [8,10], [15,18]]
Interpretation: The interval ...
Posted on Fri, 17 Apr 2020 09:50:10 -0700 by naitsir
A simple condition parsing engine has been implemented based on Roslyn before. For more information, please see this article https://www.cnblogs.com/weihanli/p/roslyn-based-condition-eval-engine.html
In the execution process, a class will be created at runtime according to different conditions, and a new assembly will be generated every ...
Posted on Fri, 17 Apr 2020 02:23:45 -0700 by ClarkF1