java - spring-aop 是否可以抛出检查异常?

标签 java exception aop spring-aop

(Spring AOP):我知道这不是......常见的做法,但是是否可以从建议中抛出已检查的异常?

最佳答案

是的,这是可能的。

AOP 方法与任何其他方法一样,可以抛出已检查和未检查的异常。

P.S:我只是想确认一下。

关于java - spring-aop 是否可以抛出检查异常?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23800773/

相关文章:

java - 阵列适配器 : What is the best way to approach creating an ArrayAdapter that would display the text from the toString() method of a custom type?

php - 我应该在表示层中抛出异常吗?

c++ - 在 catch block 异常中无意义地使用引用传递语法?

java - Spring AOP切入点表达式/包含父类的方法

java - 为什么此 AspectJ 方法签名表达式与子类型中的覆盖方法匹配?

c# - 如何连接 IAspectProvider 以便 PostSharp 使用它?

java-双向链表逻辑

java - 将 RestAssured 转换为 RestTemplate

java - 如何将 float 转换为 int : android

c# - 自动完成 try catch(不是标准异常)