restapi匿名访问

使用匿名访问 restAPI,提示:no security context bound to the current thread

这个 API 写在 portal module 了吗?

是的,都可以访问到,但是调service层就报这个错

Portal module 使用的是 Spring MVC,如果是匿名访问,需要手动提供 security context。参考这个帖子以及下面 Konstantin 的回复: