根据惯例,Grails以领域类名+“Constraints”为名字(如employeebeanconstraints .groovy),去查找脚本。
By convention, Grails looks for a script with the same name as your domain class but ending with the word "Constraints" (e.g., EmployeeBeanConstraints.groovy).
根据惯例,Grails以领域类名+“Constraints”为名字(如employeebeanconstraints .groovy),去查找脚本。
By convention, Grails looks for a script with the same name as your domain class but ending with the word "Constraints" (e.g., EmployeeBeanConstraints.groovy).
应用推荐