Spring Security Mock MVC Test
Hi I am trying to use Spring to test my controller but here is the definition of my test class:
In the SpringBootTest#classes method I specified my controller but when I run it, Spring doesn't automatically create all needed beans for example ProfileService or ProfileDao
2 Replies
⌛
This post has been reserved for your question.
Hey @Pseudow! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Post Closed
This post has been closed by <@1123703840739442698>.