org.springframework.beans.factory.BeanCreationException: Error creating bean wit

用代理指定接口,用Advice实现在目标方法执行之前执行一些操作:
错误信息:

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloProxy' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class[]' for property 'proxyInterfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [IHello]

错误原因:
IHello

原代码:

xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">








IHello








sba




你可能感兴趣的:(spring)