spring-framework / org.springframework.web.socket.server.standard / ServerEndpointExporter / setAnnotatedEndpointClasses

setAnnotatedEndpointClasses

open fun setAnnotatedEndpointClasses(vararg annotatedEndpointClasses: Class<*>): Unit

Explicitly list annotated endpoint types that should be registered on startup. This can be done if you wish to turn off a Servlet container's scan for endpoints, which goes through all 3rd party jars in the, and rely on Spring configuration instead.

Parameters

annotatedEndpointClasses - ServerEndpoint-annotated types