Commit 69817003 authored by Quxl's avatar Quxl

x

parent 2de385a6
......@@ -68,11 +68,16 @@ public class WsConfig {
private Endpoint createEndpoint(String path, Object service) {
EndpointImpl endpoint = new EndpointImpl(bus, service);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
if(wsUsedAuth) {
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
}
endpoint.publish(path);
return endpoint;
}
@Value("${wsUsedAuth}")
private boolean wsUsedAuth;
@Value("${wsUsername}")
private String wsUername;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment