Spring AOP gives IllegalArgumentException with Java 8

后端 未结 3 1350
孤街浪徒
孤街浪徒 2021-01-20 06:48

With Java 8 and Spring AOP 4.0.6 I am getting following error

    java.lang.RuntimeException: Error scanning file MonitorAroundPerformance.class
    at org.e         


        
3条回答
  •  野的像风
    2021-01-20 07:00

    If just upgrading to asm 5.* doesn't work for you, exclude all asm jars from jetty as well. This configuration worked for me:

            
                org.eclipse.jetty
                jetty-maven-plugin
                9.4.6.v20170531
                
                    
                        .*/^(asm-all-repackaged)[^/]*\.jar$
                    
                
                
                    
                        org.ow2.asm
                        asm
                        5.2
                    
                    
                        org.ow2.asm
                        asm-commons
                        5.2
                    
                
            
    

提交回复
热议问题