What are the advantages and disadvantages of Spring aop runtime weaving and load-time weaving (LoadTimeWeaving), respectively?

such as the title. Ask the boss to answer.


Analysis of advantages and disadvantages of spring

* advantages: * *

spring is a lightweight replacement for Java Enterprise (Java Enterprise Edition,JEE, also known as J2EE). There is no need to develop heavyweight Enterprise JavaBean (EJB). Spring provides a relatively simple method for enterprise Java development. Through dependency injection and aspect-oriented programming, the function of EJB is realized with simple Java object (Plain Old Java Object,POJO)

.

* * disadvantages: * *

although the component code of Spring is lightweight, its configuration is heavyweight. At first, Spring was configured with XML, and there were many XML configurations. Spring 2.5 introduces annotation-based component scanning, which eliminates a large number of explicit XML configurations for the application's own components. Spring 3.0 introduces Java-based configuration, which is a type-safe, reconfigurable configuration that can replace XML.

all of these configurations represent wear and tear during development. Because there is a mental switch between thinking about the configuration of Spring features and solving business problems, writing configurations takes up time to write application logic. Like all frameworks, Spring is practical, but at the same time it requires a lot in return.

in addition, project dependency management is also a time-consuming and labor-consuming thing. When building the environment, you need to analyze the coordinates of which libraries to import, and you also need to analyze the coordinates of other libraries that are dependent on them. Once you choose the wrong dependent version, the resulting incompatibility will seriously hinder the development progress of the project

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb56a-31a57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb56a-31a57.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?