最近在做Spring boot的shrio集成,关于怎么集成网上有很多例子,不过不知那不对,总不能一次性的完成,导致在使用的时候坑就特别多
shiro集成进来后,调用API直接404异常。
部分代码如下:
@ApiOperation("文章页")
@GetMapping(value = "")
@RequiresPermissions("systemUserAdd")
public String index(
HttpServletRequest request,
@ApiParam(name = "page", value = "页数", required = false)
@RequestParam(name = "page", required = false, defaultValue = "1")
int page,
@ApiParam(name = "limit", value = "每页数量", required = false)
@RequestParam(name = "limit", required = false, defaultValue = "15")
int limit
) {
PageInfo<ContentDomain> articles = contentService.getArticlesByCond(new ContentCond(), page, limit);
re