集成swagger后,页面上能显示,但是参数输入那栏,操作不了,是参数注解写的不对?跪求大神解答
package com.panport.raiis.nutz.module;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.lang.util.NutMap;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.GET;
import org.nutz.mvc.annotation.Ok;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
@Api(value = "raiis")
@IocBean
@At("")
public class SwaggerTestModule extends BaseModule {
@GET
@ApiOperation(value = "接口说明", notes = "接口发布说明", httpMethod="GET", response = NutMap.class)
@At("/ping")
@Ok("json:full")
public Object ping(
@ApiParam(required = false, name = "a", value = "第一个参数")String a,
@ApiParam(required = false, name = "b", value = "第二个参数")String b) {
return new NutMap("ok", true).setv("a", a).setv("b", b);
}
}