static security constraints 静态安全约束
Those parentheses in Listing 7's static constraints block won't stay empty for long.
清单 7 的 static constraints 块内的大括号不会总是空白。
This is where you can put the static constraints block that would normally be in the domain class.
该文件中可以放置本应该位于域类中的静态constraints块。
In addition to specifying the field order, the static constraints block also lets you put some validation rules in place.
除了指定字段顺序,static constraints块还允许在里面放置一些验证规则。
应用推荐