Spring错误总结

1、SpringAOP报错:
warning no match for this type name: com.mybatis.test.SpringMybatisTest [Xlint:invalidAbsoluteTypeName]
。。。
Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com.mybatis.test.SpringMybatisTest [Xlint:invalidAbsoluteTypeName]

解决办法:
@Before(value = "execution (* com.mybatis.SpringMybatisTest.*(..))")
public void before() {
System.out.println("========================");
}
表达式中类的路径名写错了,把类的名字写正确就可以了

猜你喜欢

转载自fgh2011.iteye.com/blog/2031702