Spring MockMvcBuilders Security filter
问题 I have manage to create REST API with spring mvc. My purpose was about to protect a resource with JWToken. Now i am trying to write three Test : 1. Get the Token with granted user/password Authentication Fail => test:OK 2. Get the Token with not granted user/password Authentication success => test:OK 3. Get the protected resource without providing the Token => test:fail because my rest service give the protected resource .... Here is my REST controller: @Component @RestController