扩展ServicesControllerManager问题

你好,我在程序中扩展ServicesControllerManager如下
image
但在启动服务时报错如下:
image
请问,是我扩展的方式不对吗?我使用的cuba7.2.20版本

CUBA 中扩展的方式与 Jmix 不一样,不能使用 @Component 注解。

要替换 bean 实现,应该创建一个类来实现接口或继承平台基础类并在应用程序的spring.xml中注册它。不能将 @Component 注解用到于继承类;只能在 XML 配置中覆盖 bean。

参考:扩展业务逻辑 - CUBA 框架开发者手册