No context security

Hello friends.
I have a service at an average level, it is built on a watch service, and should start at the start of the application. But the error is - No context security

Screenshot_1

The service must be a separate thread. Thx :slight_smile:

Hi @getmanenko.sv,

You need to pass the SecurityContext instance to the thread. Take a look at Security Context in the docs for an example.

Regards,
Peterson

1 Like

@peterson.br
Thank you man, you helped me a lot, thanks again :handshake:

1 Like