Write a java hot load plug-in yourself

backgroundIn the process of java project development and testing, you need to repeatedly modify the code, compile and deploy. In some large projects, the whole compilation and deployment process may take several minutes or even tens of minutes. During the joint debugging of front and rear interfaces or the modification of test problems, only on ...

Posted by johnoc on Thu, 06 Jan 2022 03:27:39 +0100

Interview 13: does the method call optional parameters or fixed parameters first?

Interview collection: https://gitee.com/mydb/interviewOptional parameters (varargs) are new features in JDK 5, also known as variable length parameters or variable parameters. It means that "..." can be used in the parameters of a method To indicate that this method can accept infinite parameters. This representation method is called ...

Posted by Concat on Thu, 06 Jan 2022 02:27:13 +0100

These 25 Vue tips you need to know

1. Limit prop to type list Using the {validator} option in the prop definition, you can limit prop to a specific set of values: export default { name: 'Image', props: { src: { type: String, }, style: { type: String, validator: s => ['square', 'rounded'].includes(s) } } }; Copy code The validator f ...

Posted by Domcsore on Thu, 06 Jan 2022 01:12:18 +0100

The difference and thinking between headline sub database, sub table and partition. Can you understand MySQL? It's too realistic

This is distributed by the database. The application is transparent. There is no need to modify anything in the code. 2.2 internal documents Go to the data directory first. If you don't know the directory location, you can: Next, look at the internal files: As can be seen from the above figure, there are two types of files frm files and ...

Posted by powerofphp on Thu, 06 Jan 2022 00:51:56 +0100

day_09_java Advanced Programming_ Common Classes_ Enumeration Class_ Notes (493~510)

Enumeration classes: Use of enumerated classes: When the object of a class is finite, deterministic Week: Monday,..., Sunday Gender: Man (male), Woman (female) Season: Spring (Spring Festival)...Winter (Winter) Payment methods: Cash (cash), WeChatPay (WeChat), Alipay (Alipay), BankCard (bank card), CreditCard (credit card) Initiation status: B ...

Posted by Warptweet on Thu, 06 Jan 2022 00:16:14 +0100

[C + +] section III - detailed introduction

Reference - alias (&) Type name& Reference variable name (object name)=Reference entity; Instead of defining a new variable, a reference gives an alias to an existing variable. The compiler will not open up space for the referenced variable. It shares the same memory with its reference characteristic References must be initi ...

Posted by summoner on Wed, 05 Jan 2022 23:28:26 +0100

Basic programming exercises for Java beginners

The while loop and if statements are used to calculate and output the even sum of 1-100. The loop variable is named i and the stored variable is named sum. public class Test { public static void main(String[] args) { int sum=0,i=1; while(i<=100) { if(i%2==0) { sum=sum+i; } i++; } System.out.println(sum); } } The ...

Posted by nickcwj on Wed, 05 Jan 2022 23:04:26 +0100

How to design a secure external interface is summarized

The blogger has previously worked in the collection and payment system of Hengfeng Bank (equivalent to the payment interface), including the current OLTP API transaction interface and the external data interface of virtual business. In short, when you have done a lot of projects and written a lot of code, you need to go back and summarize more, ...

Posted by Vince on Wed, 05 Jan 2022 22:22:12 +0100

Chapter 4 source code extension point of Spring - beanfactoryprocessors

I General description II Analysis of Spring source code III Examples Premise: Spring version is 5.0 x I General description 1. BeanFactoryPostProcessors It is an important extension point interface provided during the creation of the Spring container. It has a postProcessBeanFactory() method. When the scanning is completed according to the s ...

Posted by jmaker on Wed, 05 Jan 2022 22:11:44 +0100

Java theoretical knowledge thinking map, bye! Pure Java management system

Add the Java configuration class EruptConfig of Erupt, subject to the package of starting MallTinyApplication, and configure the package scanning path; /** * Created by macro on 2021/4/13. */ @Configuration @ComponentScan({"xyz.erupt","com.macro.mall.tiny"}) @EntityScan({"xyz.erupt","com.macro.mall.tiny"}) @EruptScan({"xyz.erupt","c ...

Posted by ganich on Wed, 05 Jan 2022 22:07:49 +0100