SpringBoot in cms classes

Hi all:

I am programming some functionalities in cms part of the product. In summary I am reading an event from scheduler an creating document contents with the data inside.

I have some classes and I annotate them with @Service, but when I use @Autowired with this class, value is null.

Is it possible to use @Autowired in cms part???

Thanks

That depends. If you are using your own spring context (e.g. in case you plugin custom SSO login with spring security), you can use annotations, see for example:

e.g.:

But you can’t use annotations within Hippo plugins or other parts of the CMS (those parts are not spring managed)

For website, check: