package com.anno; import org.springframework.stereotype.Component; @Component("target") public class target implements targetInterface { public void show() { System.out.println("目标对象方法执行。。。。"); // int i=1/0; } }