我正在用Thymeleaf创建一个简单的Spring MVC应用。由于懒惰,我也在使用Lombok。我有一个简单的DTO,传入和传出Thymeleaf:@Setter@AllArgsConstructor
public class TypeDtomethod: Does the return type of the getter match the parameter type of the setter?在以下百里叶片断
我有一个电子邮件集合的User实体,我想在百里叶模板中访问这些电子邮件:case class User (@BeanProperty val emails: scala.immutable.List看起来,如果我能够拦截对org.springframework.expression.PropertyAccessor.read(..)方法的调用,并在从该方法返回时执行转换,那么它可能会起作用。但我找不到方法来拦截这些电话。'类
我试着用Thymeleaf作为ModelAttribute列表,但我没有让它起作用。我读过这个页面,但是我的代码失败了。, setter omitted我的DTO用于ui
private booleanmethod: Does the return type of the getter match the parameter type of the sett