title: How to configure Spring Data Rest for working with two databases?
body: <p>Currently I have project with configured data sources for two databases, it works fine.</p>
  
  <p>But after adding spring data rest module it does not work, I am getting such error:</p>
  
  <pre><code>IllegalArgumentException: Not an managed type: class....
  </code></pre>
  
  <p>It appears only after adding @RepositoryRestResource annotation. Seems like Spring Data Rest is not synchronized with jpa repositories configuration, does anybody have example of working spring data rest jpa repositories with two databases?</p>