Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在接缝应用程序中使用@Restrict。我的一个场景包含一系列动作。我需要限制每一个动作还是只限制开始动作?除了第一个动作之外的所有动作都是从第一个动作调用的。
如果它们是私有方法,那么您不需要限制它们。但是,如果它们是公共方法,则应该限制它们,因为可以从参数调用方法。
如果你用注解class来@Restrict注解,那么所有的方法都会被限制。
class
@Restrict