title: Using http-basic-authentication with spring webservices
body: <p>I followed <a href="https://spring.io/guides/gs/producing-web-service/" rel="nofollow">https://spring.io/guides/gs/producing-web-service/</a> to implement simple webservice using Spring. Everything works like expected. Now I am trying to add http basic authentication to it using javaconfig. How should I proceed? I found some links where @EnableWebSecurity was used however nothing seems to work... Service responds without authentication...</p>