学习链接 https://www.cnblogs.com/gmq-sh/p/4798194.html
可以说是非常清楚了。
/**
* Create by tianci
* 2019/2/14 10:54
*/
@Service
public class GameServiceImpl implements GameService {
@Timer
@Override
public void doGame() {
throw new IllegalArgumentException("异常");
}
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Timer {
}
}








网友评论