Question: how to do tdd in spring boot?
Answer: Use the Full Stack Application for Acceptance Tests. First thing I do when I start implementing a new feature is to write a blackbox end-to-end acceptance test. ...  Minimize the test scope for components. ...  Use transactions for database operations. ...  Separate Business Logic from Application Code.