大家好,有人可以帮我胸腺,如何获取多个对象(例如地址对象)?
我使用 springboot 2.6.0 版本,thymeleaf 框架作为视图模板和 Spring MVC 模式。
我有 Profile 对象 ->配置文件有地址列表。我很困惑如何从 thymeleaf 模板获取多个地址对象。
有人可以帮忙吗? 下面是代码片段:
public class DoctorProfileModel {
private String email;
private String dateOfBirth;
private String gender;
private String dateOfJoining;
private String specialization;
private List<QualificationModel> qualification;
private List<AddressModel> addresses;
private String phoneNumber;
//getter and Setters
}
我想绑定我的 html 页面之一来更新个人资料的地址和资格。
我很困惑该怎么办?
I am using springboot 2.6.0 version, thymeleaf framework as view template and Spring MVC pattern.
I have Profile object -> profile has list of address .I am confused how to get multiple address object from thymeleaf template.
can someone help?
Below is code snippet:
public class DoctorProfileModel {
private String email;
private String dateOfBirth;
private String gender;
private String dateOfJoining;
private String specialization;
private List<QualificationModel> qualification;
private List<AddressModel> addresses;
private String phoneNumber;
//getter and Setters
}
I want to bind one of my html page for updating the profile's address and qualification.
I am getting confused what to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论