包如下的錯:java.lang.IllegalStateException: Cannot call sendError() after the response has been committed 1.在一個對象的屬性中使用@ManyToOne對于某一個關聯的字段時,在使用findAll會報如下的錯,如下圖是在一個對象中使用了@ManyToOne
1.组件添加 1.1.@Configuration 我们在这里准备了两个组件,宠物类和用户类,用户类包含用户姓名和年龄,宠物类包含宠物名 public class User {public String name;public int age;public User() {}public User(String name, int age) {this.name =