Issue
In my project, i use basically microservice architecture, spring boot, spring cloud and gradle etc.
When i tried to Gradle build, it takes error but when i tried to running to the my application, it runs properly.
I searched too many resource but i didn't find any solution. No solution suggestions worked for me and error explanation is not specific which it is too general
Solution
I found to error's resource and error's solution. Error's resource some class contains @Autowired annotation in test package so for this situation, I must use SpringBootTest and RunWith(SpringRunner.class). If I dont use, I take error. For me I used these annotations but SpringBootTest I use wrong location @SpringBootTest(classes = {ABC.class}) I changed to correct location and it works :).
Answered By - Surabaya
Answer Checked By - Robin (JavaFixing Admin)