设为首页 加入收藏

TOP

使用Spring自定义注解生产Http接口描述信息(三)
2015-02-02 14:11:30 来源: 作者: 【 】 浏览:48
Tags:使用 Spring 定义 注解 生产 Http 接口 描述 信息
tApplicationContext(ApplicationContext applicationContext)
? ?throws BeansException {
? this.applicationContext = (WebApplicationContext)applicationContext;
?}


?@Override
?public void afterPropertiesSet() throws Exception {
? this.loadHandlerMapping();
? this.orderMappers();
? this.applicationContext.getServletContext().setAttribute("api", this.mappers);
?}
?
?/**
? *

方法描述:刷新接口信息


? *

创建人: 王成委?


? *

创建时间: 2015年1月10日 上午10:50:06


? * @throws Exception
? */
?public void refresh() throws Exception{
? this.mappers = new HashMap>();
? this.afterPropertiesSet();
?}
}


利用C标签生产接口描述信息



?
?
? ? ? ?
? ? ? ?
? ? ? ?
? ? ? ?
?
? ? ? ? ?

? ? ? ? ?
? ?
? ?
? ? ? ? ? ?
? ? ? ? ? ?

? ? ? ? ?
? ? ? ? ?
? ? ? ? ?
? ? ? ? ?
? ? ? ?
?
?
接口地址接口名称参数说明

? ? ?
? ?

? ? ? ? ? ?${list.url}
? ? ? ? ?
${list.name}
? ? ?
? ? ? ${params.name}:${params.desc}

? ? ?

? ? ?


首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Android JSON解析数据 下一篇使用IntelliJ IDEA 编译开源的机..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: