Nuxt.js (view, axios operation, plug-in)
3. view
3.1 default layout
~/layouts/default.vue
3.2 custom layout
Step 1: create a file under the ~ / layouts folder
~/layouts/blog.vue
Note that there must be a < / nuxt > tag, which is equivalent to the < / router View > you learned before
Step 2: introduce in the page
If not imported, the default layout is used by defa ...
Posted by david4u on Wed, 18 Mar 2020 06:19:12 -0700
Spring cloud uses Feign and Hystrix to realize fault-tolerant protection of services
@[toc]
Spring cloud uses Feign and Hystrix to realize fault-tolerant protection of services
Preface
The fault-tolerant protection of Hystrix enables the code to be spliced with the + sign when it is called. The implementation method is not elegant, as shown in the figure below.
Hystrix calls service
@HystrixCommand(fallbackMethod = "fallbac ...
Posted by kam_uoc on Wed, 18 Mar 2020 05:33:26 -0700
Source code analysis of HashMap(JDK1.8)
Source code analysis of HashMap (JDK1.8)
This is one of the series that I forgot to read again. Today I have time to write a document and record it. I hope I can slowly understand their excellent ideas from the JDK source code. This paper mainly records the following aspects.
1. Inheritance and implementation structure of HashMap
2. Constructor ...
Posted by andymike07 on Wed, 18 Mar 2020 05:15:50 -0700
Spring cloud uses Ribbon to achieve client load balancing
@[toc]
Spring cloud uses Ribbon to achieve client load balancing
Preface
In Spring cloud, when multiple services of the same type start to register in the service registry, the frequency service is the cluster
When the consumer (client) consumes, it needs to select and call the service.
Service registration click
The default call in Spring clo ...
Posted by CreativeWebDsign on Wed, 18 Mar 2020 05:08:16 -0700
Java barcode SDK example: command line, interface, network
Share this article ZXing and Dynamsoft Java Barcode SDK Use in three scenarios.
Java Barcode application
My test image contains various types of barcodes.
Add ZXing and Dynamsoft Barcode Reader to Maven's profile:
<repositories>
<repository>
<id>dbr</id>
<url>https://download.dynams ...
Posted by chiprivers on Tue, 17 Mar 2020 10:55:42 -0700
Solr implements the LIKE query function similar to MySQL
Recently, we have encountered the need for keyword query on large text. The effect to be achieved is that when a user enters a word or a word, all the contents containing the word or a word should be searched. It's the same as MySQL's LIKE query.
In this scenario, the first thing I think about is to directly use MySQL storage, and then query, w ...
Posted by idnoble on Tue, 17 Mar 2020 08:19:00 -0700
Check whether the string in the XSLT is empty or empty
How to use XSL Is the check value empty or empty?
For example, if the categoryName is empty? What I use when selecting constructs is.
For example:
<xsl:choose>
<xsl:when test="categoryName !=null">
<xsl:value-of select="categoryName " />
</xsl:when>
<xsl:otherwise>
<xsl:value ...
Posted by khaldryck on Tue, 17 Mar 2020 06:02:16 -0700
Qt learning custom control 1: draw a simple to use dashboard
Qt learning custom control 1: draw a simple to use dashboard
Opening words
Method 1: load SVG (if the SVG file cannot be uploaded, the screenshot will be displayed)
Dial screenshots
Pointer screenshots
widget.h:
widget.cpp:
Effect map 1:
Method 2: draw directly with code
qmgauge.h:
qmgauge.cpp:
q ...
Posted by mkoga on Tue, 17 Mar 2020 00:20:08 -0700
redis source code analysis v1.0
Section I. references
https://www.cnblogs.com/davidwang456/articles/9294912.html
https://blog.csdn.net/BigRat_WH/article/details/88640793
https://blog.csdn.net/u011577874/article/details/73000207
https://www.cnblogs.com/gjc592/p/11098047.html
First of all, the source code of redis is elegant and bea ...
Posted by hungryOrb on Mon, 16 Mar 2020 23:54:32 -0700
MyBatis: developing with annotations
Interface oriented programming
You have learned object-oriented programming and interface before, but in real development, we often choose interface oriented programming
Root cause: decouple, expand, improve reuse, in layered development, the upper layer doesn't need to care about the specific implem ...
Posted by ammupon on Mon, 16 Mar 2020 22:35:24 -0700