首页>代码>集成了微信公众号、工作流(activiti)可视化界面的OA开发框架,SSM>/javaaciviti/src/com/fh/controller/activiti/editor/main/StencilsetRestResource.java
package com.fh.controller.activiti.editor.main;

import java.io.InputStream;

import org.activiti.engine.ActivitiException;
import org.apache.commons.io.IOUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/** 
 * 类名称:StencilsetRestResource
 * 创建人:acticiti官方源码 3 1 3 596 790 qq(青苔)
 * 更新时间:2017年12月25日
 * @version
 */
@RestController
public class StencilsetRestResource {
  
  @RequestMapping(value="/editor/stencilset", method = RequestMethod.GET, produces = "application/json;charset=utf-8")
  public @ResponseBody String getStencilset() {
    InputStream stencilsetStream = this.getClass().getClassLoader().getResourceAsStream("stencilset.json");
    try {
      return IOUtils.toString(stencilsetStream, "utf-8");
    } catch (Exception e) {
      throw new ActivitiException("Error while loading stencil set", e);
    }
  }
}
最近下载更多
sunlea  LV20 3月6日
微信网友_7269098639953920  LV2 2024年11月25日
educationAAA  LV11 2024年9月26日
最代码官方  LV168 2024年9月22日
最近浏览更多
ewan007  LV30 7月2日
zackery  LV9 6月18日
浅影阿 6月6日
暂无贡献等级
youwuzuichen  LV11 5月30日
zt843217  LV2 5月26日
dongxiaoyu  LV1 5月15日
charles0908 4月25日
暂无贡献等级
哪里的完整版  LV8 4月2日
best2018  LV46 3月20日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友