Spring / SpringBoot: which one is the web context, and which one the backend?

Viewed 21

I would like to start an udp service in the backend (and not in the frontend) context (especially only once, because only one service can establish the socket, not both).

How can I figure out, in which context my bean is located, to open the port in one of both only?

Thanks in advice for any ideas

Greez

0 Answers
Related