title: How to make service threadsafe (restful)
body: <p>Using Spring Boot, I have a service class, that has a private field. The field is read and modified by different methods.</p>
  <pre><code>@Service
  ...
     private int maxPoints
  </code></pre>
  <p>A rest controller uses that service. I am afraid that different, parallel rest consumers will lead to different threads and that the private variable is not threadsafe.</p>
  <p>Whats the best way, to assure thread safety with spring boot and rest?</p>