您正在
PropertyEditor使用new运算符(
binder.registerCustomEditor(Categoria.class, newCategoriaConverter());)创建外部Spring上下文,因此不会注入服务:请遵循此链接上的指南来解决您的问题。

您正在
PropertyEditor使用new运算符(
binder.registerCustomEditor(Categoria.class, newCategoriaConverter());)创建外部Spring上下文,因此不会注入服务:请遵循此链接上的指南来解决您的问题。