HTTP Status 500 - tag 'select', field 'list', name 'category.id': The requested list key 'categories' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]

HTTP Status 500 - tag 'select', field 'list', name 'category.id': The requested list key 'categories' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]

Nguyên nhân: do chưa tạo các hàm getter, setter trong class Category(categories là List<Category>).
Chỉ cần thêm các hàm getter, setter vào trong class Category là được.

Related

Hibernate 2506364205499717901

Post a Comment

emo-but-icon

Follow Us

Hot in week

Recent

Comments

Side Ads

Text Widget

Connect Us

item