Junit in springboot not working with autowired annotation : I have a springboot application in which i m creating rest web services using mvc pattern. I have controller ,service and dao class and using autowired annotation for callung methods of service and dao layer.  

When i creating junit using mockito,the values are going into controller but  from controller it is not going to service class. Olease help in this