类与Maps
public class Page {
private Map<LocaleWrapper, String> titles;
private Map<LocaleWrapper, String> texts;
(...)
}
关键类
public class LocaleWrapper implements Serializable {
private Locale locale;
//Constructor, getter, setter
}
我的 IDE 抛出错误:
Basic attributes can only be of the following types: (...), or any Serializable type.
为什么我的 IDE 会抛出这个错误,我该如何修复我的映射?提前致谢。