@API的注解都只是用于生成文档吗?
以下代码中 红色区域的 @API相关注解 都只是用于生成文档吗?
@Api(value = "LoginController", description = "登录控制器")
@Controller
public class LoginController extends BaseController{
@Autowired
private SessionDAO sessionDAO;
@Autowired
private OaNotifyService oaNotifyService;
@Autowired
private MailBoxService mailBoxService;
/**
* 管理登录
* @throws IOException
*/
@ApiOperation(notes = "login", httpMethod = "POST", value = "用户登录")
@ApiImplicitParams({@ApiImplicitParam(name = "username", value = "用户名", required = true, paramType = "query",dataType = "string"),
@ApiImplicitParam(name = "password", value = "密码", required = true, paramType = "query",dataType = "string"),
@ApiImplicitParam(name="mobileLogin",value = "接口标志",required = true, paramType = "query",dataType = "string")})
@RequestMapping(value = "${adminPath}/login")
public String login(HttpServletRequest request, HttpServletResponse response) throws IOException {
Principal principal = UserUtils.getPrincipal();
if (logger.isDebugEnabled()){
logger.debug("login, active session size: {}", sessionDAO.getActiveSessions(false).size());
}