I highly recommend this resource.
First of all, you should understand what is used to use the proxy template. Remember that the main purpose of the proxy server is to control access to the target, and not to increase the functionality of the target. Access control includes synchronization, authentication, remote access (RPC), lazy instance (Hibernate, Mybatis), AOP (transaction).
Unlike a static proxy, a dynamic proxy generates bytecode that requires Java reflection at runtime. With dynamics, you donโt need to put a proxy class, which can lead to more convenience.
xiaojieaa Jan 26 '14 at 1:57 2014-01-26 01:57
source share