Java – using AOP XML loading time weaving in AspectJ
                                        
                    •
                    Java                                    
                According to my understanding, in order to use AOP XML file for load time weaving, it must be placed in meta - inf Is there any way to bypass this and use AOP in any directory XML (or any XML file)? thank you.
Solution
You can use the system attribute org aspectj. weaver. loadtime. Configuration points to another AspectJ configuration file For example:
-D org.aspectj.weaver.loadtime.configuration=Meta-INF/myaop.xml
                            The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
                        
                                            
                        THE END
                    
                    
                    
                                                        二维码
                        
                        
                                                
                        