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.
基本上,我要做的是在 gsp 文件中显示来自控制器的所有操作,以便用户可以查看她可以在我的网站中执行的他/她可能的方法,并且所有这些方法(操作)都在一个控制器 。有人可以帮忙吗?谢谢你。
import grails.web.Action List<String> actions = YourControllerClassHere.methods.findAll({ it.getAnnotation(Action) })*.name