Java dynamic proxy (JDK dynamic proxy and cglib)

JDK dynamic agent The dynamic proxy of JDK only allows proxy interfaces Important classes and interfaces Proxy and InvocationHandler The proxy.newproxyinstance (classloader, loader, class <? > [] interfaces, invocationhandler h) method creates a proxy object for the target object After obtaining the proxy object of the target object, th ...

Posted by ccbayer on Wed, 24 Nov 2021 11:01:48 -0800

Detailed explanation of the past and present life of Spring Boot and its relationship with Spring Cloud

To understand the development background of Spring Boot, we have to start with the release of Spring Framework version 1.0 in 2004. However, we all use the spring framework from the beginning of learning Java, so we don't expand too much.With more and more enterprises and individuals using the Spring Framework for development, Spring has slowly ...

Posted by POGRAN on Wed, 24 Nov 2021 10:25:12 -0800

Love and marriage system source code, system optimization is the basis to ensure performance

The essence of optimization The purpose of source code optimization of marriage and love system is to ensure the robustness of the program. Sometimes it is not necessary to spend too much time when the program can run normally. Cyclic optimization Take an example, please pay attention to this code, the source code of marriage and marriage sy ...

Posted by johnh2009 on Wed, 24 Nov 2021 09:47:40 -0800

Spring MVC construction case

Article catalog What is spring MVC A long time ago, SSH was the most popular architecture mode(   Spring   Struts encapsulates servlet s   hibernate  );–> Baidu Encyclopedia SSH Framework Then came SSM(   Spring   Struts   Mybatis  ) ; Note that it's not working here yet   Spring MVC &nbs ...

Posted by cwiddowson on Wed, 24 Nov 2021 08:01:56 -0800

It turns out that this is the correct implementation of multithreading

Java Memory Model Thread synchronization Thread synchronization mechanism is a set of data access mechanism suitable for coordinating threads, which can ensure thread safety The thread synchronization mechanism provided by the java platform includes lock, volatile keyword, final keyword, static keyword, and related API s such as obje ...

Posted by jzimmerlin on Wed, 24 Nov 2021 07:14:29 -0800

Alibaba cloud - build an on cloud blog

2. Deployment environment This tutorial uses Apache as the back-end server and creates a MySQL database on the ECs to store data. one   On the ECS server, execute the following command to install the Apache service and its extension package. yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql If a result similar to the ...

Posted by jesushax on Wed, 24 Nov 2021 07:09:46 -0800

Da baa Da baa - related concepts of affairs. You can't beat me

catalogue 1, Concept of transaction 2, Operating transaction commands in MySQL database   2.1. Write the test SQL script as follows: 2.1. Start transaction 2.2. Commit 2.3. Rollback 3, Using transactions in JDBC 3.1. JDBC transaction example   3.2. Set transaction rollback point 4, Four characteristics of transaction (ACID) ...

Posted by sirkodo on Wed, 24 Nov 2021 05:25:11 -0800

LockSupport explained in detail. It took 6 months to successfully join Alibaba

void park(): blocks the current thread. If the unpark method is called or the current thread is interrupted, it can be returned from the park() method void park(Object blocker): the function is the same as method 1. An Object object is added to the input parameter to record the blocking objects that cause thread blocking, so as to facilitate ...

Posted by quikone on Wed, 24 Nov 2021 04:23:54 -0800

Thread class and common methods

Thread class and common methods Common construction methods of Thread: methodexplainThread( )Create thread objectThread(Runnable target)Creating thread objects using Runnable objectsThread(String name)Create a thread object and name itThread(Runnable target,String name)Use the Runnable object to create a thread object and name it give an ...

Posted by Locked on Wed, 24 Nov 2021 04:07:46 -0800

Complete collection of Java interview questions (continuously updated, interview with Java Senior Development Engineer)

13. Look at the program and write the results class Fu{ public int num = 10; public Fu(){ System.out.println("fu"); } } class Zi extends Fu{ public int num = 20; public Zi(){ System.out.println("zi"); } public void show(){ int num = 30; System.out.println(num); System.out.println(this.num); System.out.prin ...

Posted by JimF on Wed, 24 Nov 2021 02:13:13 -0800