@AssertTrue of javax.validation - isn't it supposed to create an error message?
问题 I am having the following code in a Spring-MVC command bean: @AssertTrue public boolean isConditionTrue() { return false; } private boolean conditionTrue; My JSP contains the following: <form:errors path="conditionTrue" cssClass="error" /> I would expect to see some error message in the produced HTML... however I see no error message. What do I miss? Thanks!!! 来源: https://stackoverflow.com/questions/7155767/asserttrue-of-javax-validation-isnt-it-supposed-to-create-an-error-message