Integration tests breaking after upgrading to springboot 3.1.4 – @Autowired fields are null
After updating springboot from version 2 to 3.1.4, all the tests are failing because autowired fields(myService) in all my test classes are null. This is throwing null pointer exceptions.