I\'m trying to create a simple spring boot web project with security. I can launch the application fine and the security is working fine. However, I have some components t
Have a try with Spring Security @WithMockUser to mock a user quickly in tests.
@WithMockUser
http://docs.spring.io/spring-security/site/docs/4.0.x/reference/htmlsingle/#test