Explore polymorphisms and their benefits in Java
Polymorphism is one of the basic principles of object-oriented software.The term often refers to things that can take many forms.In an object-oriented approach, polymorphism makes it possible to write programs with late-bound references.Although it is easy to create polymorphic references in Java, the concepts behind them have a far-reaching im ...
Posted by David-fethiye on Mon, 16 Dec 2019 04:54:37 +0100
[go cryptography] - Digital Signature
introduce
Digital signature is a digital string that can not be forged by others only by the sender of the message. This digital string is an effective proof of the authenticity of the information.
Sender: generate signature
Recipient: verify signature
Asymmetric cryptography
In asymmetric encryption, the public key is used for encryption and ...
Posted by validangina on Sun, 15 Dec 2019 16:28:31 +0100
idea uses ant design, rcreate react app
Download and install node npm
Get into node Select Windows installation package (. MSI) 64bit to download and install
Using msi will configure the environment variable path, which is convenient
All commands are basically in the project path or directly in the terminal of idea
//Open the command prompt to test whether the instal ...
Posted by marian on Sun, 15 Dec 2019 15:34:24 +0100
Talk about the RemotingTooMuchRequestException of rocketmq
order
This paper focuses on the remoting toomuchrequestexception of rocketmq
RemotingTooMuchRequestException
rocketmq-remoting-4.6.0-sources.jar!/org/apache/rocketmq/remoting/exception/RemotingTooMuchRequestException.java
public class RemotingTooMuchRequestException extends RemotingException {
private static final long serialVersionUID = 43 ...
Posted by Blaze(!) on Sun, 15 Dec 2019 15:09:02 +0100
Spring boot series tutorial automatic configuration selection takes effect
191214 spring boot series tutorials automatic configuration selection takes effect
After writing a series of Spring blogs for so long, I found a problem. All previous articles focused on making one thing work. Is there anything that goes against it?
We know that @ ConditionOnXxx can be used to determine whether a configuration class can be ...
Posted by dsds1121 on Sun, 15 Dec 2019 13:50:17 +0100
spring boot default single thread queuing run timing task problem record
**Problem Description: when using the default scheduled tasks of springboot, if there are multiple tasks, the framework will only start one thread for execution by default, which will cause some tasks cannot start execution at the specified time**
**In addition, a separate record will be written about the synchronization lock of timed tasks un ...
Posted by anakadote on Sat, 14 Dec 2019 16:03:57 +0100
The realization of simple one-way linked list
The picture is quoted from mooc.com. I have realized a simple linked list myself
Realization
class LinkedList<E>
{
private class Node
{
public E e;
public Node next;
public Node(E e,Node next)
{
this.e = e;
this.next = nex ...
Posted by hbsnam on Fri, 13 Dec 2019 21:41:40 +0100
Django Rest Framework serialization component
drf serialization component
Basic use
urls.py
from django.urls import re_path
urlpatterns = [
re_path(r'books/$', views.BookView.as_view()),
re_path(r'books/(?P<pk>\d+)/$', views.BookFilterView.as_view()),
]
serialization class
from rest_framework import serializers
class BookSerializer(serializers.Serializer):
title = seri ...
Posted by robcrozier on Fri, 13 Dec 2019 17:54:49 +0100
POJ-1062 ﹒ expensive betrothal gift -- the shortest path mutation
Title Link: Order me, please
Main idea:
nnn items, each item has its own price PPP, the level of the item is LLL, and the number of items that can be replaced is XXX. The X-line of each item gives the item number that can be replaced and the gold coins needed for replacement. At the same time, the grade difference of the items ...
Posted by aspekt9 on Fri, 13 Dec 2019 17:04:35 +0100
Spring boot extends URLClassLoader to implement nested jar loading
To: https://segmentfault.com/a/11900013532009
In the last article Spring boot application startup principle (1) embedding startup script into jar The principle of how springboot integrates the startup script and Runnable Jar into Executable Jar is introduced in so that the generated jar/war file can be started directly This article will show h ...
Posted by greywire on Fri, 13 Dec 2019 10:57:49 +0100