---
title: "Spring错误总结"
author: "fgh2011"
date: "2014-03-16T15:02:33Z"
tags: []
categories: ["企业架构"]
slug: "spring"
draft: false
lastmod: "2014-03-16T15:02:33Z"
id: 2031702
url: "https://fgh2011.iteye.com/blog/2031702"
---

1、SpringAOP报错：
 warning no match for this type name: com.mybatis.test.SpringMybatisTest 
。。。
Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com.mybatis.test.SpringMybatisTest 

解决办法：
@Before(value = "execution (* com.mybatis.SpringMybatisTest.*(..))")
	public void before() {
		System.out.println("========================");
	}
表达式中类的路径名写错了，把类的名字写正确就可以了