三重罗生门の个性化弹窗
最后更新于:2022-04-01 23:46:47
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/b9fb94283b3a488a93452e6162abccb8_380x250.png)
在使用Eova业务拦截器时,如何返回提示系统?
用于返回类型为String的AOP拦截方法
* * * * *
`return Easy.info("弹出一个提示消息-人之门");`
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/231c3a95a010687b0c3898adee90d223_304x138.png)
* * * * *
`return Easy.warn("弹出一个警告消息-地之门");`
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/dc2d9425254dda3270a218ebd3f2e341_304x138.png)
* * * * *
`return Easy.error("弹出一个错误消息-天之门");`
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/5d5feb013bb1cb8431fa9d4006daae07_304x138.png)
* * * * *
`return "弹出一个默认提示";`
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/f2f2296c280c213321c255d9fe0e5c9e_304x138.png)
* * * * *
`throw new Exception("抛出一个业务异常!!");`
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/4b6785f9add013991b57f4e55b1e0448_304x138.png)
> PS:抛出异常和弹出消息会触发回滚,业务正常 return null;
';