How can Spring AspectJ weaving work without the -javaagent vm option?
问题 I understand Spring avoids using the -javaagent vm option in order to get its AspectJ load time weaving to work and relies instead on a classloader to start the agent. I thought that the Java specification dictated that the only way to use a Java agent was through the -javaagent vm option. Am I wrong? Can someone please direct me to the official Java specification/documentation that would clarify my interrogation? 回答1: I found some information about loading java agents in this interesting