自定义Controller来获取accessToken

根据官方的手册https://doc.cuba-platform.com/manual-6.9/rest_api_v2_custom_auth.html
我自建了一个restController来获取accessToken
但是不能通过GET方法来访问http://localhost:8080/app/restapi/auth-code
请问是什么原因呢?是哪里漏配置了么?手册里面的配置都已经做过了。

访问的地址应该为http://localhost:8080/app/rest/auth-code
其中前面的http://localhost:8080/app/rest不能变……后面auth-code是自己创建的Controller里面@RequestMapping(“auth-code”)定义的名称……