'Spring boot - adding a secondary data source causes nothing to get save during a integration test
In a project I am working on we added a secondary data source. This meant adding the entity factory and the transaction manager at the @EnableJpaRepositories.
We have some integration tests. Supe simple. Create a in memory db, add a user, check the user is there then do other stuff. But adding the transaction manager seems to stop the user getting saved, like doing a find straight after shows empty but we have a saved object. Take out the data source and it works.
Could any one shed some light on this behaviour?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
