NutzCN Logo
问答 前端找不到对应路径函数问题
发布于 2619天前 作者 qq_857440e9 1765 次浏览 复制 上一个帖子 下一个帖子
标签:

不知道哪里写错,前端按/jxkh/cqs就找不到post方法也没错,[DEBUG] 11:54:04.183 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:110) - Search mapping for [POST] path=/jxkh/cqs : NOT Action match

@IocBean
@At("/jxkh")
@Ok("json:{ignoreNull:true}")
public class EnterpriseCheckModule extends BaseModule {
	Log log = Logs.get();

	@Inject protected EnterpriseCheckService enterpriseCheckService;
	
	@POST
	@Ok("json")
	@At("/cqs")
	@AdaptBy(type = JsonAdaptor.class)
	@Filters
	public Object check(@Param("projectId")String projectId, HttpServletResponse response) {		
		try {
			log.info("查询成功");
			Sql sql = Sqls.create("SELECT a.name,a.realname as realName,b.name as projectName from sys_project_user c LEFT JOIN sys_user a on a.id = c.u_id LEFT JOIN sys_project b on b.id = c.p_id where b.id = @A");
			sql.params().set("A", projectId);
			sql.setCallback(Sqls.callback.maps());
		    dao.execute(sql);
		    List maps = sql.getList(Map.class);
		    return maps;
		} catch (Exception e) {
			log.info("查询失败");
			e.printStackTrace();
		}
		return Messager.instance(CommResultEnum.QUERY_FAIL).res();
	}
1 回复

启动日志里面找找这个映射

添加回复
请先登陆
回到顶部