├── README.md ├── idoc-common ├── idoc-common.iml ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── idoc │ │ │ └── common │ │ │ └── utils │ │ │ ├── ACHDOJ.java │ │ │ ├── AutoAc.java │ │ │ ├── BaseJunit4Test.java │ │ │ ├── BasePojo.java │ │ │ ├── BaseService.java │ │ │ ├── DbUtil.java │ │ │ ├── FastDFSClient.java │ │ │ ├── FilterHtml.java │ │ │ ├── HttpUtils.java │ │ │ ├── IDUtils.java │ │ │ ├── IdocResult.java │ │ │ ├── JedisCallback.java │ │ │ ├── JedisClient.java │ │ │ ├── JedisClientSingle.java │ │ │ └── JsonUtils.java │ └── resources │ │ ├── autoAC.properties │ │ ├── config │ │ └── spring │ │ │ └── NULL.xml │ │ ├── log4j.xml │ │ └── rebel.xml │ └── test │ └── java │ └── Test.java ├── idoc-main ├── .idea │ ├── artifacts │ │ ├── idoc_rest_war.xml │ │ ├── idoc_rest_war_exploded.xml │ │ ├── idoc_sso_war.xml │ │ ├── idoc_sso_war_exploded.xml │ │ ├── idoc_web_war.xml │ │ ├── idoc_web_war_exploded.xml │ │ └── unnamed.xml │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── dataSources.ids │ ├── dataSources.local.xml │ ├── dataSources.xml │ ├── libraries │ │ ├── Maven__com_alibaba_druid_1_0_2.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_1.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_8_1.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_8_1.xml │ │ ├── Maven__commons_dbcp_commons_dbcp_1_4.xml │ │ ├── Maven__commons_fileupload_commons_fileupload_1_2_1.xml │ │ ├── Maven__commons_io_commons_io_1_3_2.xml │ │ ├── Maven__commons_net_commons_net_3_3.xml │ │ ├── Maven__commons_pool_commons_pool_1_6.xml │ │ ├── Maven__javax_persistence_persistence_api_1_0.xml │ │ ├── Maven__junit_junit_4_11.xml │ │ ├── Maven__log4j_log4j_1_2_17.xml │ │ ├── Maven__mysql_mysql_connector_java_5_1_34.xml │ │ ├── Maven__org_apache_commons_commons_lang3_3_3_2.xml │ │ ├── Maven__org_aspectj_aspectjweaver_1_8_9.xml │ │ ├── Maven__org_codehaus_jackson_jackson_core_asl_1_9_4.xml │ │ ├── Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_4.xml │ │ ├── Maven__org_hamcrest_hamcrest_core_1_3.xml │ │ ├── Maven__org_mybatis_mybatis_3_2_8.xml │ │ ├── Maven__org_mybatis_mybatis_spring_1_2_2.xml │ │ ├── Maven__org_slf4j_jcl_over_slf4j_1_7_5.xml │ │ ├── Maven__org_slf4j_slf4j_api_1_7_5.xml │ │ ├── Maven__org_slf4j_slf4j_log4j12_1_7_5.xml │ │ ├── Maven__org_springframework_data_spring_data_redis_1_0_2_RELEASE.xml │ │ ├── Maven__org_springframework_spring_aop_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_aspects_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_beans_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_context_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_context_support_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_core_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_expression_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_jdbc_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_orm_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_tx_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_web_4_3_3_RELEASE.xml │ │ ├── Maven__org_springframework_spring_webmvc_4_3_3_RELEASE.xml │ │ ├── Maven__redis_clients_jedis_2_1_0.xml │ │ └── Maven__tk_mybatis_mapper_3_3_9.xml │ ├── misc.xml │ ├── modules.xml │ ├── uiDesigner.xml │ ├── vcs.xml │ └── workspace.xml ├── idoc-dao │ ├── idoc-dao.iml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── idoc │ │ │ └── dao │ │ │ └── mapper │ │ │ ├── TDocInfoMapper.java │ │ │ └── TDocInfoMapper.xml │ │ └── resources │ │ ├── hibernate.cfg.xml │ │ └── rebel.xml ├── idoc-main.iml ├── idoc-parent │ ├── .idea │ │ ├── artifacts │ │ │ ├── idoc_rest_war.xml │ │ │ ├── idoc_rest_war_exploded.xml │ │ │ ├── idoc_sso_war.xml │ │ │ ├── idoc_sso_war_exploded.xml │ │ │ ├── idoc_web_war.xml │ │ │ └── idoc_web_war_exploded.xml │ │ ├── encodings.xml │ │ ├── libraries │ │ │ ├── Maven__com_alibaba_druid_1_0_2.xml │ │ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_1.xml │ │ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_8_1.xml │ │ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_8_1.xml │ │ │ ├── Maven__com_github_jsqlparser_jsqlparser_0_9_6.xml │ │ │ ├── Maven__com_github_pagehelper_pagehelper_4_1_6.xml │ │ │ ├── Maven__commons_codec_commons_codec_1_9.xml │ │ │ ├── Maven__commons_dbcp_commons_dbcp_1_4.xml │ │ │ ├── Maven__commons_fileupload_commons_fileupload_1_2_1.xml │ │ │ ├── Maven__commons_io_commons_io_1_3_2.xml │ │ │ ├── Maven__commons_logging_commons_logging_1_1_3.xml │ │ │ ├── Maven__commons_net_commons_net_3_3.xml │ │ │ ├── Maven__commons_pool_commons_pool_1_6.xml │ │ │ ├── Maven__javax_persistence_persistence_api_1_0.xml │ │ │ ├── Maven__javax_servlet_javax_servlet_api_3_0_1.xml │ │ │ ├── Maven__junit_junit_4_12.xml │ │ │ ├── Maven__log4j_log4j_1_2_17.xml │ │ │ ├── Maven__mysql_mysql_connector_java_5_1_34.xml │ │ │ ├── Maven__org_apache_commons_commons_lang3_3_3_2.xml │ │ │ ├── Maven__org_apache_commons_commons_pool2_2_3.xml │ │ │ ├── Maven__org_apache_httpcomponents_httpclient_4_5_2.xml │ │ │ ├── Maven__org_apache_httpcomponents_httpcore_4_4_5.xml │ │ │ ├── Maven__org_apache_httpcomponents_httpmime_4_5_2.xml │ │ │ ├── Maven__org_aspectj_aspectjweaver_1_8_9.xml │ │ │ ├── Maven__org_codehaus_jackson_jackson_core_asl_1_9_13.xml │ │ │ ├── Maven__org_codehaus_jackson_jackson_core_asl_1_9_4.xml │ │ │ ├── Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_4.xml │ │ │ ├── Maven__org_hamcrest_hamcrest_core_1_3.xml │ │ │ ├── Maven__org_mybatis_mybatis_3_2_8.xml │ │ │ ├── Maven__org_mybatis_mybatis_spring_1_2_2.xml │ │ │ ├── Maven__org_slf4j_jcl_over_slf4j_1_7_5.xml │ │ │ ├── Maven__org_slf4j_slf4j_api_1_7_5.xml │ │ │ ├── Maven__org_slf4j_slf4j_log4j12_1_7_5.xml │ │ │ ├── Maven__org_springframework_spring_aop_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_aspects_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_beans_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_context_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_context_support_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_core_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_expression_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_jdbc_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_orm_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_test_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_tx_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_web_4_3_3_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_webmvc_4_3_3_RELEASE.xml │ │ │ ├── Maven__redis_clients_jedis_2_7_2.xml │ │ │ └── Maven__tk_mybatis_mapper_3_3_9.xml │ │ ├── modules.xml │ │ └── vcs.xml │ ├── idoc-parent.iml │ ├── pom.xml │ └── src │ │ └── main │ │ └── resources │ │ └── rebel.xml ├── idoc-pojo │ ├── idoc-pojo.iml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── swagger │ │ │ └── idoc │ │ │ └── po │ │ │ ├── TDocDatasource.java │ │ │ ├── TDocDatasourceExample.java │ │ │ ├── TDocDefinitions.java │ │ │ ├── TDocDefinitionsExample.java │ │ │ ├── TDocFeedback.java │ │ │ ├── TDocFeedbackExample.java │ │ │ ├── TDocHistory.java │ │ │ ├── TDocHistoryExample.java │ │ │ ├── TDocInfo.java │ │ │ ├── TDocInfoExample.java │ │ │ ├── TDocInform.java │ │ │ ├── TDocInformExample.java │ │ │ ├── TDocMain.java │ │ │ ├── TDocMainExample.java │ │ │ ├── TDocPath.java │ │ │ ├── TDocPathExample.java │ │ │ ├── TDocPathItem.java │ │ │ ├── TDocPathItemExample.java │ │ │ ├── TDocProject.java │ │ │ ├── TDocProjectExample.java │ │ │ ├── TDocReqParam.java │ │ │ ├── TDocReqParamExample.java │ │ │ ├── TDocRespHead.java │ │ │ ├── TDocRespHeadExample.java │ │ │ ├── TDocRespParam.java │ │ │ ├── TDocRespParamExample.java │ │ │ ├── TDocSystemInfo.java │ │ │ ├── TDocSystemInfoExample.java │ │ │ ├── TDocTag.java │ │ │ ├── TDocTagExample.java │ │ │ ├── TRightDoc.java │ │ │ ├── TRightDocExample.java │ │ │ ├── TRightList.java │ │ │ ├── TRightListExample.java │ │ │ ├── TUserContact.java │ │ │ ├── TUserContactExample.java │ │ │ ├── TUserLogin.java │ │ │ └── TUserLoginExample.java │ │ └── resources │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ └── rebel.xml ├── idoc-service │ ├── idoc-service.iml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── idoc │ │ │ └── service │ │ │ ├── TestService.java │ │ │ └── impl │ │ │ └── TestServiceImpl.java │ │ └── resources │ │ ├── log4j.xml │ │ └── rebel.xml └── pom.xml ├── idoc-rest ├── idoc-rest.iml ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── idoc │ │ └── rest │ │ ├── controller │ │ └── TestController.java │ │ └── service │ │ ├── GetDocInfoByIdService.java │ │ └── impl │ │ └── GetDocInfoByIdImpl.java │ ├── resources │ ├── config │ │ ├── db.properties │ │ ├── mybatis │ │ │ └── SqlMapConfig.xml │ │ └── spring │ │ │ ├── applicationContext-dao.xml │ │ │ ├── applicationContext-service.xml │ │ │ ├── applicationContext-transaction.xml │ │ │ └── springmvc.xml │ ├── constant │ │ └── constant.properties │ ├── log4j.xml │ └── rebel.xml │ └── webapp │ ├── WEB-INF │ ├── common │ │ ├── 404.jsp │ │ ├── error.jsp │ │ └── exception.jsp │ ├── pages │ │ └── test.jsp │ └── web.xml │ └── index.jsp ├── idoc-sso ├── idoc-sso.iml ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── idoc │ │ │ └── sso │ │ │ ├── controller │ │ │ ├── Test.java │ │ │ └── TestController.java │ │ │ └── service │ │ │ ├── GetDocInfoByIdService.java │ │ │ └── impl │ │ │ ├── GetDocInfoByIdImpl.java │ │ │ └── TestById.java │ ├── resources │ │ ├── config │ │ │ ├── db.properties │ │ │ ├── mybatis │ │ │ │ └── SqlMapConfig.xml │ │ │ ├── redis.properties │ │ │ └── spring │ │ │ │ ├── applicationContext-dao.xml │ │ │ │ ├── applicationContext-service.xml │ │ │ │ ├── applicationContext-transaction.xml │ │ │ │ ├── redis-config.xml │ │ │ │ └── springmvc.xml │ │ ├── constant │ │ │ └── constant.properties │ │ ├── log4j.xml │ │ └── rebel.xml │ └── webapp │ │ ├── WEB-INF │ │ ├── common │ │ │ ├── 404.jsp │ │ │ ├── error.jsp │ │ │ └── exception.jsp │ │ ├── pages │ │ │ └── test.jsp │ │ └── web.xml │ │ └── index.jsp │ └── test │ └── java │ ├── Test.java │ └── com │ └── idoc │ └── sso │ └── controller │ ├── BaseJunit4Test.java │ └── TestControllerTest.java └── idoc-web ├── idoc-web.iml ├── pom.xml └── src └── main ├── java └── com │ └── idoc │ └── controller │ └── TestController.java ├── resources ├── config │ ├── db.properties │ ├── mybatis │ │ └── SqlMapConfig.xml │ └── spring │ │ ├── applicationContext-dao.xml │ │ ├── applicationContext-service.xml │ │ ├── applicationContext-transaction.xml │ │ └── springmvc.xml ├── log4j.xml └── rebel.xml └── webapp ├── WEB-INF ├── common │ ├── 404.jsp │ ├── error.jsp │ └── exception.jsp ├── pages │ └── test.jsp └── web.xml └── index.jsp /README.md: -------------------------------------------------------------------------------- 1 | # restfulApi 2 | an platform to edit and maintantence your SwaggerApi online . also a utility for automatically generating API documentation according to you have edited. it'll display on Swagger-Ui https://github.com/cbamls/restfulApi 3 | now is under developping~! 4 | idoc-1.0暂且就作为一个基于Maven多Module的SSM框架Demo,同时跟随大神的指导思想,加了redis缓存数据库处理登录,日志系统采用slf4j + log4j,项目使用了很新的spring4.3,并会在其中实践一些spring4+的一些特性。下一版独开一个库来编写业务逻辑,实现最终的也无需求。 5 | -------------------------------------------------------------------------------- /idoc-common/idoc-common.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/BaseJunit4Test.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | import org.junit.runner.RunWith; 4 | import org.springframework.test.context.ContextConfiguration; 5 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 6 | 7 | /** 8 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 9 | * Project: idoc-parent 10 | * Comments: 11 | * Author:cbam 12 | * Create Date:2016/11/25 13 | * Modified By: 14 | * Modified Date: 15 | * Modified Reason: 16 | */ 17 | @RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试 18 | @ContextConfiguration({"/config/spring/applicationContext-*.xml"}) //加载配置文件 19 | 20 | //------------如果加入以下代码,所有继承该类的测试类都会遵循该配置,也可以不加,在测试类的方法上 21 | // 控制事务,参见下一个实例 22 | //这个非常关键,如果不加入这个注解配置,事务控制就会完全失效! 23 | //@Transactional 24 | //这里的事务关联到配置文件中的事务控制器(transactionManager = "transactionManager"),同时 25 | // 指定自动回滚(defaultRollback = true)。这样做操作的数据才不会污染数据库! 26 | //@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true) 27 | //------------ 28 | public class BaseJunit4Test { 29 | } -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/BasePojo.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | import java.util.Date; 4 | 5 | /** 6 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 7 | * Project: idoc-parent 8 | * Comments: 9 | * Author:cbam 10 | * Create Date:2016/12/10 11 | * Modified By: 12 | * Modified Date: 13 | * Modified Reason: 14 | */ 15 | public abstract class BasePojo { 16 | /* private Date created; 17 | private Date updated; 18 | 19 | public Date getCreated() { 20 | return created; 21 | } 22 | public void setCreated(Date created) { 23 | this.created = created; 24 | } 25 | public Date getUpdated() { 26 | return updated; 27 | } 28 | public void setUpdated(Date updated) { 29 | this.updated = updated; 30 | }*/ 31 | } -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/BaseService.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | import com.github.pagehelper.PageHelper; 4 | import com.github.pagehelper.PageInfo; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import tk.mybatis.mapper.common.Mapper; 7 | import tk.mybatis.mapper.entity.Example; 8 | 9 | import java.util.Date; 10 | import java.util.List; 11 | 12 | /** 13 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 14 | * Project: idoc-parent 15 | * Comments: 16 | * Author:cbam 17 | * Create Date:2016/12/10 18 | * Modified By: 19 | * Modified Date: 20 | * Modified Reason: 21 | */ 22 | public class BaseService { 23 | 24 | //这里利用了Spring4才支持的泛型注入 25 | @Autowired 26 | private Mapper mapper; 27 | 28 | /** 29 | * 根据id查询 30 | */ 31 | public T queryById(Integer id){ 32 | return this.mapper.selectByPrimaryKey(id); 33 | } 34 | /** 35 | * 根据条件查询一条数据 36 | */ 37 | public T queryOne(T example){ 38 | return this.mapper.selectOne(example); 39 | } 40 | 41 | /** 42 | * 查询所有数据 43 | */ 44 | public List queryAll(){ 45 | return this.mapper.select(null); 46 | } 47 | 48 | /** 49 | * 根据条件查询数据列表 50 | */ 51 | public List queryListByWhere(T example){ 52 | return this.mapper.select(example); 53 | } 54 | 55 | /** 56 | * 分页查询数据列表 57 | * @param example 查询条件 58 | * @param page 页数 59 | * @param rows 页面大小 60 | * @return 61 | */ 62 | public PageInfo queryPageListByWhere(T example, Integer page, Integer rows){ 63 | 64 | //设置分页参数 65 | PageHelper.startPage(page,rows); 66 | //执行查询 67 | List list = this.mapper.select(example); 68 | return new PageInfo(list); 69 | } 70 | /** 71 | * 新增数据,注意设置数据的创建和更新时间 72 | * 返回成功的条数 73 | */ 74 | public Integer save(T t){ 75 | return this.mapper.insertSelective(t); 76 | 77 | } 78 | /** 79 | * 更新数据,设置数据的更新时间 80 | * 返回成功的条数 81 | */ 82 | public Integer update(T t){ 83 | return this.mapper.updateByPrimaryKey(t); 84 | } 85 | 86 | /** 87 | * 更新数据,设置数据的更新时间(更新部分数据) 88 | * 返回成功的条数 89 | */ 90 | public Integer updateSelective(T t){ 91 | return this.mapper.updateByPrimaryKeySelective(t); 92 | } 93 | /** 94 | * 根据id删除数据 95 | */ 96 | public Integer deleteById(Integer id){ 97 | return this.mapper.deleteByPrimaryKey(id); 98 | } 99 | /** 100 | * 批量删除数据 101 | * @param clazz 102 | * @param property 103 | * @param list 104 | * @return 105 | */ 106 | public Integer deleteByIds(Class clazz,String property,List list){ 107 | Example example=new Example(clazz); 108 | example.createCriteria().andIn(property,list); 109 | return this.mapper.deleteByExample(example); 110 | } 111 | 112 | /** 113 | * 根据条件删除数据 114 | */ 115 | public Integer deleteByWhere(T example){ 116 | return this.mapper.delete(example); 117 | } 118 | 119 | } 120 | 121 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/FastDFSClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | package com.idoc.common.utils; 3 | 4 | import org.csource.common.NameValuePair; 5 | import org.csource.fastdfs.*; 6 | 7 | public class FastDFSClient { 8 | 9 | private TrackerClient trackerClient = null; 10 | private TrackerServer trackerServer = null; 11 | private StorageServer storageServer = null; 12 | private StorageClient1 storageClient = null; 13 | 14 | public FastDFSClient(String conf) throws Exception { 15 | if (conf.contains("classpath:")) { 16 | conf = conf.replace("classpath:", this.getClass().getResource("/").getPath()); 17 | } 18 | ClientGlobal.init(conf); 19 | trackerClient = new TrackerClient(); 20 | trackerServer = trackerClient.getConnection(); 21 | storageServer = null; 22 | storageClient = new StorageClient1(trackerServer, storageServer); 23 | } 24 | 25 | */ 26 | /** 27 | * 上传文件方法 28 | *

Title: uploadFile

29 | *

Description:

30 | * @param fileName 文件全路径 31 | * @param extName 文件扩展名,不包含(.) 32 | * @param metas 文件扩展信息 33 | * @return 34 | * @throws Exception 35 | *//* 36 | 37 | public String uploadFile(String fileName, String extName, NameValuePair[] metas) throws Exception { 38 | String result = storageClient.upload_file1(fileName, extName, metas); 39 | return result; 40 | } 41 | 42 | public String uploadFile(String fileName) throws Exception { 43 | return uploadFile(fileName, null, null); 44 | } 45 | 46 | public String uploadFile(String fileName, String extName) throws Exception { 47 | return uploadFile(fileName, extName, null); 48 | } 49 | 50 | */ 51 | /** 52 | * 上传文件方法 53 | *

Title: uploadFile

54 | *

Description:

55 | * @param fileContent 文件的内容,字节数组 56 | * @param extName 文件扩展名 57 | * @param metas 文件扩展信息 58 | * @return 59 | * @throws Exception 60 | *//* 61 | 62 | public String uploadFile(byte[] fileContent, String extName, NameValuePair[] metas) throws Exception { 63 | 64 | String result = storageClient.upload_file1(fileContent, extName, metas); 65 | return result; 66 | } 67 | 68 | public String uploadFile(byte[] fileContent) throws Exception { 69 | return uploadFile(fileContent, null, null); 70 | } 71 | 72 | public String uploadFile(byte[] fileContent, String extName) throws Exception { 73 | return uploadFile(fileContent, extName, null); 74 | } 75 | } 76 | */ 77 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/IDUtils.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | import java.util.Random; 4 | 5 | /** 6 | * 各种id生成策略 7 | */ 8 | public class IDUtils { 9 | 10 | /** 11 | * 图片名生成 12 | */ 13 | public static String genImageName() { 14 | //取当前时间的长整形值包含毫秒 15 | long millis = System.currentTimeMillis(); 16 | //long millis = System.nanoTime(); 17 | //加上三位随机数 18 | Random random = new Random(); 19 | int end3 = random.nextInt(999); 20 | //如果不足三位前面补0 21 | String str = millis + String.format("%03d", end3); 22 | 23 | return str; 24 | } 25 | 26 | /** 27 | * 商品id生成 28 | */ 29 | public static long genItemId() { 30 | //取当前时间的长整形值包含毫秒 31 | long millis = System.currentTimeMillis(); 32 | //long millis = System.nanoTime(); 33 | //加上两位随机数 34 | Random random = new Random(); 35 | int end2 = random.nextInt(99); 36 | //如果不足两位前面补0 37 | String str = millis + String.format("%02d", end2); 38 | long id = new Long(str); 39 | return id; 40 | } 41 | 42 | public static void main(String[] args) { 43 | for(int i=0;i< 100;i++) 44 | System.out.println(genItemId()); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/IdocResult.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | import com.fasterxml.jackson.databind.JsonNode; 4 | import com.fasterxml.jackson.databind.ObjectMapper; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 10 | * Project: idoc-parent 11 | * Comments: 12 | * Author:cbam 13 | * Create Date:2016/12/10 14 | * Modified By: 15 | * Modified Date: 16 | * Modified Reason: 17 | */ 18 | public class IdocResult { 19 | private static final ObjectMapper MAPPER = new ObjectMapper(); 20 | 21 | private Integer status; 22 | 23 | private String msg; 24 | 25 | private Object data; 26 | 27 | public static IdocResult build(Integer status, String msg, Object data) { 28 | return new IdocResult(status, msg, data); 29 | } 30 | 31 | public static IdocResult ok(Object data) { 32 | return new IdocResult(data); 33 | } 34 | 35 | public static IdocResult ok() { 36 | return new IdocResult(null); 37 | } 38 | 39 | public IdocResult() { 40 | 41 | } 42 | 43 | public IdocResult(Integer status, String msg, Object data) { 44 | this.status = status; 45 | this.msg = msg; 46 | this.data = data; 47 | } 48 | 49 | public IdocResult(Object data) { 50 | this.status = 200; 51 | this.msg = "success"; 52 | this.data = data; 53 | } 54 | 55 | /** 56 | * 将json结果集转化为MigoResult对象 57 | * 58 | * @param jsonData json数据 59 | * @param clazz MigoResult中的object类型 60 | * @return IdocResult 61 | */ 62 | public static IdocResult formatToPojo(String jsonData, Class clazz) { 63 | try { 64 | if (clazz == null) { 65 | return MAPPER.readValue(jsonData, IdocResult.class); 66 | } 67 | JsonNode jsonNode = MAPPER.readTree(jsonData); 68 | JsonNode data = jsonNode.get("data"); 69 | Object obj = null; 70 | if (clazz != null) { 71 | if (data.isObject()) { 72 | obj = MAPPER.readValue(data.traverse(), clazz); 73 | } else if (data.isTextual()) { 74 | obj = MAPPER.readValue(data.asText(), clazz); 75 | } 76 | } 77 | return build(jsonNode.get("status").intValue(), jsonNode.get("msg").asText(), obj); 78 | } catch (Exception e) { 79 | return null; 80 | } 81 | } 82 | 83 | /** 84 | * 没有object对象的转化 85 | * 86 | * @param json 87 | * @return 88 | */ 89 | public static IdocResult format(String json) { 90 | try { 91 | return MAPPER.readValue(json, IdocResult.class); 92 | } catch (Exception e) { 93 | e.printStackTrace(); 94 | } 95 | return null; 96 | } 97 | 98 | /** 99 | * Object是集合转化 100 | * 101 | * @param jsonData json数据 102 | * @param clazz 集合中的类型 103 | * @return 104 | */ 105 | public static IdocResult formatToList(String jsonData, Class clazz) { 106 | try { 107 | JsonNode jsonNode = MAPPER.readTree(jsonData); 108 | JsonNode data = jsonNode.get("data"); 109 | Object obj = null; 110 | if (data.isArray() && data.size() > 0) { 111 | obj = MAPPER.readValue(data.traverse(), 112 | MAPPER.getTypeFactory().constructCollectionType(List.class, clazz)); 113 | } 114 | return build(jsonNode.get("status").intValue(), jsonNode.get("msg").asText(), obj); 115 | } catch (Exception e) { 116 | return null; 117 | } 118 | } 119 | 120 | public Integer getStatus() { 121 | return status; 122 | } 123 | 124 | public void setStatus(Integer status) { 125 | this.status = status; 126 | } 127 | 128 | public String getMsg() { 129 | return msg; 130 | } 131 | 132 | public void setMsg(String msg) { 133 | this.msg = msg; 134 | } 135 | 136 | public Object getData() { 137 | return data; 138 | } 139 | 140 | public void setData(Object data) { 141 | this.data = data; 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/JedisCallback.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | /** 4 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 5 | * Project: idoc-parent 6 | * Comments: 7 | * Author:cbam 8 | * Create Date:2016/12/9 9 | * Modified By: 10 | * Modified Date: 11 | * Modified Reason: 12 | */ 13 | public interface JedisCallback { 14 | T doJedisCallbak(E e); 15 | } 16 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/JedisClient.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | /** 4 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 5 | * Project: idoc-parent 6 | * Comments: 7 | * Author:cbam 8 | * Create Date:2016/12/9 9 | * Modified By: 10 | * Modified Date: 11 | * Modified Reason: 12 | */ 13 | public interface JedisClient { 14 | String get(String key); 15 | String set(String key, String value); 16 | String set(String key, String value, Integer seconds); 17 | String hget(String hkey, String key); 18 | Long hset(String hkey, String key, String value); 19 | Long incr(String key); 20 | Long decr(String key); 21 | Long expire(String key, int second); 22 | Long ttl(String key); 23 | Long del(String key); 24 | Long hdel(String hkey, String key); 25 | } 26 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/JedisClientSingle.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import redis.clients.jedis.Jedis; 5 | import redis.clients.jedis.JedisPool; 6 | 7 | /** 8 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 9 | * Project: idoc-parent 10 | * Comments: 11 | * Author:cbam 12 | * Create Date:2016/12/9 13 | * Modified By: 14 | * Modified Date: 15 | * Modified Reason: 16 | */ 17 | public class JedisClientSingle implements JedisClient { 18 | /** 19 | * 有些系统可能不需要添加redis缓存,反而依赖了common项目,但是自己容器内又没有对redis做相应配置, 20 | * 故 required = false 这样就可以做到,容器内有则注入,没有就忽略 21 | */ 22 | @Autowired(required = false) 23 | private JedisPool jedisPool; 24 | 25 | private T excute(JedisCallback jedisJedisCallback) { 26 | Jedis jedis = null; 27 | try { 28 | jedis = jedisPool.getResource(); 29 | return jedisJedisCallback.doJedisCallbak(jedis); 30 | } catch (Exception e) { 31 | e.printStackTrace(); 32 | } finally { 33 | if(jedis != null) { 34 | jedis.close(); 35 | } 36 | } 37 | return null; 38 | } 39 | @Override 40 | public String get(String key) { 41 | return this.excute((jedis) -> {return jedis.get(key); }); 42 | } 43 | 44 | @Override 45 | public String set(String key, String value) { 46 | return this.excute((jedis) -> { return jedis.set(key, value); }); 47 | } 48 | 49 | @Override 50 | public String set(String key, String value, Integer seconds) { 51 | return this.excute((jedis) -> {return jedis.setex(key, seconds, value); }); 52 | } 53 | 54 | @Override 55 | public String hget(String hkey, String key) { 56 | return this.excute((jedis) -> {return jedis.hget(hkey, key);}); 57 | } 58 | 59 | @Override 60 | public Long hset(String hkey, String key, String value) { 61 | return this.excute(new JedisCallback() { 62 | @Override 63 | public Long doJedisCallbak(Jedis jedis) { 64 | return jedis.hset(hkey, key, value); 65 | } 66 | }); 67 | } 68 | 69 | @Override 70 | public Long incr(String key) { 71 | return this.excute((jedis) -> {return jedis.incr(key); }); 72 | } 73 | 74 | @Override 75 | public Long decr(String key) { 76 | return this.excute((jedis) -> {return jedis.decr(key); }); 77 | } 78 | 79 | @Override 80 | public Long expire(String key, int second) { 81 | return this.excute((jedis) -> {return jedis.expire(key, second); }); 82 | } 83 | 84 | @Override 85 | public Long ttl(String key) { 86 | return this.excute((jedis) -> {return jedis.ttl(key); }); 87 | } 88 | 89 | @Override 90 | public Long del(String key) { 91 | return this.excute((jedis) -> {return del(key);}); 92 | } 93 | 94 | @Override 95 | public Long hdel(String hkey, String key) { 96 | return this.excute((jedis) -> {return jedis.hdel(hkey, key);}); 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /idoc-common/src/main/java/com/idoc/common/utils/JsonUtils.java: -------------------------------------------------------------------------------- 1 | package com.idoc.common.utils; 2 | 3 | import com.fasterxml.jackson.core.JsonProcessingException; 4 | import com.fasterxml.jackson.databind.JavaType; 5 | import com.fasterxml.jackson.databind.ObjectMapper; 6 | 7 | import java.util.List; 8 | 9 | 10 | public class JsonUtils { 11 | 12 | // 定义jackson对象 13 | private static final ObjectMapper MAPPER = new ObjectMapper(); 14 | 15 | /** 16 | * 将对象转换成json字符串。 17 | *

Title: pojoToJson

18 | *

Description:

19 | * @param data 20 | * @return 21 | */ 22 | public static String objectToJson(Object data) { 23 | try { 24 | String string = MAPPER.writeValueAsString(data); 25 | return string; 26 | } catch (JsonProcessingException e) { 27 | e.printStackTrace(); 28 | } 29 | return null; 30 | } 31 | 32 | /** 33 | * 将json结果集转化为对象 34 | * 35 | * @param jsonData json数据 36 | * @param beanType 对象中的object类型 37 | * @return 38 | */ 39 | public static T jsonToObject(String jsonData, Class beanType) { 40 | try { 41 | T t = MAPPER.readValue(jsonData, beanType); 42 | return t; 43 | } catch (Exception e) { 44 | e.printStackTrace(); 45 | } 46 | return null; 47 | } 48 | 49 | /** 50 | * 将json数据转换成pojo对象list 51 | *

Title: jsonToList

52 | *

Description:

53 | * @param jsonData 54 | * @param beanType 55 | * @return 56 | */ 57 | public static List jsonToList(String jsonData, Class beanType) { 58 | JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType); 59 | try { 60 | List list = MAPPER.readValue(jsonData, javaType); 61 | return list; 62 | } catch (Exception e) { 63 | e.printStackTrace(); 64 | } 65 | 66 | return null; 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /idoc-common/src/main/resources/autoAC.properties: -------------------------------------------------------------------------------- 1 | #autoAC.userName : oj\u5E10\u53F7\u540D 2 | #autoAC.password: oj\u8D26\u6237\u5BC6\u7801 3 | #autoAC.shareCode=: \u662F\u5426AC\u540E\u5206\u4EAB\u4EE3\u7801 \u9ED8\u8BA4\u4E3Afalse 4 | #autoAC.credit=\uFF1A\u8D2D\u4E70\u5206\u503C \u5FC5\u987B\u5728\u4E0A\u4E2A\u53C2\u6570\u542F\u7528\u540E\u751F\u6548 5 | #autoAC.viewCode=: \u662F\u5426\u5C06\u4EE3\u7801\u663E\u793A\u5728\u63A7\u5236\u53F0\u4E0A \u9ED8\u8BA4\u4E3Afalse 6 | #autoAC.enableAC=\uFF1A\u662F\u5426\u53BBAC\u4ED6 7 | #autoAC.toFile=:\u662F\u5426\u5C06\u6BCF\u9898\u9898\u89E3\u4FDD\u5B58\u5230 D\uFF1A\u76D8 \u9ED8\u8BA4\u4E3Afalse 8 | autoAC.userName=cbam 9 | autoAC.password=cbam123 10 | autoAC.shareCode=false 11 | autoAC.credit=0 12 | autoAC.viewCode=false 13 | autoAC.enableAC=true 14 | autoAC.toFile=false -------------------------------------------------------------------------------- /idoc-common/src/main/resources/config/spring/NULL.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cbamls/restfulApi/3eadb98b1cc597df449994ffef518f7614395e61/idoc-common/src/main/resources/config/spring/NULL.xml -------------------------------------------------------------------------------- /idoc-common/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-main/.idea/artifacts/idoc_rest_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/../idoc-rest/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /idoc-main/.idea/artifacts/idoc_rest_war_exploded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/../idoc-rest/target/idoc-rest 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /idoc-main/.idea/artifacts/idoc_sso_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/../idoc-sso/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /idoc-main/.idea/artifacts/idoc_web_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/../idoc-web/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /idoc-main/.idea/artifacts/unnamed.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/out/artifacts/unnamed 4 | 5 | 6 | -------------------------------------------------------------------------------- /idoc-main/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /idoc-main/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /idoc-main/.idea/dataSources.local.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | master_key 6 | root 7 | idoc.* 8 | idoc.* 9 | 10 | 11 | -------------------------------------------------------------------------------- /idoc-main/.idea/dataSources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | mysql 6 | true 7 | com.mysql.jdbc.Driver 8 | jdbc:mysql://localhost:3306/idoc 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__com_alibaba_druid_1_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__commons_dbcp_commons_dbcp_1_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__commons_io_commons_io_1_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__commons_net_commons_net_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__commons_pool_commons_pool_1_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__javax_persistence_persistence_api_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__junit_junit_4_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__log4j_log4j_1_2_17.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_34.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_mybatis_mybatis_3_2_8.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_mybatis_mybatis_spring_1_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_slf4j_slf4j_log4j12_1_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_data_spring_data_redis_1_0_2_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_aop_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_aspects_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_beans_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_context_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_context_support_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_core_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_expression_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_jdbc_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_orm_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_tx_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_web_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__org_springframework_spring_webmvc_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__redis_clients_jedis_2_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/libraries/Maven__tk_mybatis_mapper_3_3_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /idoc-main/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /idoc-main/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /idoc-main/idoc-dao/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | idoc-parent 7 | com.swagger.idoc 8 | 1.0-SNAPSHOT 9 | ../idoc-parent/pom.xml 10 | 11 | 4.0.0 12 | 13 | idoc-dao 14 | 15 | 16 | 17 | 18 | com.github.pagehelper 19 | pagehelper 20 | 21 | 22 | 23 | com.github.jsqlparser 24 | jsqlparser 25 | 26 | 27 | 28 | tk.mybatis 29 | mapper 30 | 31 | 32 | 33 | com.alibaba 34 | druid 35 | 36 | 37 | 38 | commons-dbcp 39 | commons-dbcp 40 | 41 | 42 | 43 | org.mybatis 44 | mybatis 45 | 46 | 47 | 48 | org.mybatis 49 | mybatis-spring 50 | 51 | 52 | 53 | 54 | 55 | mysql 56 | mysql-connector-java 57 | 58 | 59 | 60 | com.swagger.idoc 61 | idoc-pojo 62 | 1.0-SNAPSHOT 63 | 64 | 65 | -------------------------------------------------------------------------------- /idoc-main/idoc-dao/src/main/java/com/idoc/dao/mapper/TDocInfoMapper.java: -------------------------------------------------------------------------------- 1 | package com.idoc.dao.mapper; 2 | 3 | import com.swagger.idoc.po.TDocInfo; 4 | import tk.mybatis.mapper.common.Mapper; 5 | 6 | public interface TDocInfoMapper extends Mapper { 7 | //HashMap getDocInfoById(Integer id); 8 | /* int countByExample(TDocInfoExample example); 9 | 10 | int deleteByPrimaryKey(Integer id); 11 | 12 | int insert(TDocInfo record); 13 | 14 | int insertSelective(TDocInfo record); 15 | 16 | List selectByExampleWithBLOBs(TDocInfoExample example); 17 | 18 | List selectByExample(TDocInfoExample example); 19 | 20 | TDocInfo selectByPrimaryKey(Integer id); 21 | 22 | int updateByPrimaryKeySelective(TDocInfo record); 23 | 24 | int updateByPrimaryKeyWithBLOBs(TDocInfo record); 25 | 26 | int updateByPrimaryKey(TDocInfo record);*/ 27 | } -------------------------------------------------------------------------------- /idoc-main/idoc-dao/src/main/resources/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /idoc-main/idoc-dao/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-main/idoc-main.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/artifacts/idoc_rest_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/../../idoc-rest/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/artifacts/idoc_sso_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/../../idoc-sso/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/artifacts/idoc_web_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/../../idoc-web/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__com_alibaba_druid_1_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_0_9_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__com_github_pagehelper_pagehelper_4_1_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__commons_codec_commons_codec_1_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__commons_dbcp_commons_dbcp_1_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__commons_io_commons_io_1_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__commons_logging_commons_logging_1_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__commons_net_commons_net_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__commons_pool_commons_pool_1_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__javax_persistence_persistence_api_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__junit_junit_4_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__log4j_log4j_1_2_17.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_34.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_3_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_apache_httpcomponents_httpmime_4_5_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_codehaus_jackson_jackson_core_asl_1_9_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_codehaus_jackson_jackson_mapper_asl_1_9_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_mybatis_mybatis_3_2_8.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_mybatis_mybatis_spring_1_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_slf4j_slf4j_log4j12_1_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_aop_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_aspects_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_beans_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_context_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_context_support_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_core_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_expression_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_jdbc_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_orm_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_test_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_tx_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_web_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__org_springframework_spring_webmvc_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__redis_clients_jedis_2_7_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/libraries/Maven__tk_mybatis_mapper_3_3_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/idoc-parent.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /idoc-main/idoc-parent/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | idoc-parent 7 | com.swagger.idoc 8 | 1.0-SNAPSHOT 9 | ../idoc-parent/pom.xml 10 | 11 | 4.0.0 12 | 13 | idoc-pojo 14 | 15 | 16 | com.swagger.idoc 17 | idoc-common 18 | 1.0-SNAPSHOT 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocDatasource.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocDatasource { 6 | private Integer id; 7 | 8 | private Integer projectId; 9 | 10 | private String driver; 11 | 12 | private String url; 13 | 14 | private String name; 15 | 16 | private String password; 17 | 18 | private Date createTime; 19 | 20 | private Date updateTime; 21 | 22 | public Integer getId() { 23 | return id; 24 | } 25 | 26 | public void setId(Integer id) { 27 | this.id = id; 28 | } 29 | 30 | public Integer getProjectId() { 31 | return projectId; 32 | } 33 | 34 | public void setProjectId(Integer projectId) { 35 | this.projectId = projectId; 36 | } 37 | 38 | public String getDriver() { 39 | return driver; 40 | } 41 | 42 | public void setDriver(String driver) { 43 | this.driver = driver == null ? null : driver.trim(); 44 | } 45 | 46 | public String getUrl() { 47 | return url; 48 | } 49 | 50 | public void setUrl(String url) { 51 | this.url = url == null ? null : url.trim(); 52 | } 53 | 54 | public String getName() { 55 | return name; 56 | } 57 | 58 | public void setName(String name) { 59 | this.name = name == null ? null : name.trim(); 60 | } 61 | 62 | public String getPassword() { 63 | return password; 64 | } 65 | 66 | public void setPassword(String password) { 67 | this.password = password == null ? null : password.trim(); 68 | } 69 | 70 | public Date getCreateTime() { 71 | return createTime; 72 | } 73 | 74 | public void setCreateTime(Date createTime) { 75 | this.createTime = createTime; 76 | } 77 | 78 | public Date getUpdateTime() { 79 | return updateTime; 80 | } 81 | 82 | public void setUpdateTime(Date updateTime) { 83 | this.updateTime = updateTime; 84 | } 85 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocDefinitions.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocDefinitions { 6 | private Integer id; 7 | 8 | private Integer docId; 9 | 10 | private Date createTime; 11 | 12 | private Date updateTime; 13 | 14 | private String userCode; 15 | 16 | private String description; 17 | 18 | private String json; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public Integer getDocId() { 29 | return docId; 30 | } 31 | 32 | public void setDocId(Integer docId) { 33 | this.docId = docId; 34 | } 35 | 36 | public Date getCreateTime() { 37 | return createTime; 38 | } 39 | 40 | public void setCreateTime(Date createTime) { 41 | this.createTime = createTime; 42 | } 43 | 44 | public Date getUpdateTime() { 45 | return updateTime; 46 | } 47 | 48 | public void setUpdateTime(Date updateTime) { 49 | this.updateTime = updateTime; 50 | } 51 | 52 | public String getUserCode() { 53 | return userCode; 54 | } 55 | 56 | public void setUserCode(String userCode) { 57 | this.userCode = userCode == null ? null : userCode.trim(); 58 | } 59 | 60 | public String getDescription() { 61 | return description; 62 | } 63 | 64 | public void setDescription(String description) { 65 | this.description = description == null ? null : description.trim(); 66 | } 67 | 68 | public String getJson() { 69 | return json; 70 | } 71 | 72 | public void setJson(String json) { 73 | this.json = json == null ? null : json.trim(); 74 | } 75 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocFeedback.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocFeedback { 6 | private Integer id; 7 | 8 | private String title; 9 | 10 | private String content; 11 | 12 | private Date createTime; 13 | 14 | private String type; 15 | 16 | private Integer cusId; 17 | 18 | public Integer getId() { 19 | return id; 20 | } 21 | 22 | public void setId(Integer id) { 23 | this.id = id; 24 | } 25 | 26 | public String getTitle() { 27 | return title; 28 | } 29 | 30 | public void setTitle(String title) { 31 | this.title = title == null ? null : title.trim(); 32 | } 33 | 34 | public String getContent() { 35 | return content; 36 | } 37 | 38 | public void setContent(String content) { 39 | this.content = content == null ? null : content.trim(); 40 | } 41 | 42 | public Date getCreateTime() { 43 | return createTime; 44 | } 45 | 46 | public void setCreateTime(Date createTime) { 47 | this.createTime = createTime; 48 | } 49 | 50 | public String getType() { 51 | return type; 52 | } 53 | 54 | public void setType(String type) { 55 | this.type = type == null ? null : type.trim(); 56 | } 57 | 58 | public Integer getCusId() { 59 | return cusId; 60 | } 61 | 62 | public void setCusId(Integer cusId) { 63 | this.cusId = cusId; 64 | } 65 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocHistory.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocHistory { 6 | private Integer id; 7 | 8 | private String title; 9 | 10 | private String content; 11 | 12 | private Integer cusId; 13 | 14 | private String cusName; 15 | 16 | private Date updateTime; 17 | 18 | private Integer projectId; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public String getTitle() { 29 | return title; 30 | } 31 | 32 | public void setTitle(String title) { 33 | this.title = title == null ? null : title.trim(); 34 | } 35 | 36 | public String getContent() { 37 | return content; 38 | } 39 | 40 | public void setContent(String content) { 41 | this.content = content == null ? null : content.trim(); 42 | } 43 | 44 | public Integer getCusId() { 45 | return cusId; 46 | } 47 | 48 | public void setCusId(Integer cusId) { 49 | this.cusId = cusId; 50 | } 51 | 52 | public String getCusName() { 53 | return cusName; 54 | } 55 | 56 | public void setCusName(String cusName) { 57 | this.cusName = cusName == null ? null : cusName.trim(); 58 | } 59 | 60 | public Date getUpdateTime() { 61 | return updateTime; 62 | } 63 | 64 | public void setUpdateTime(Date updateTime) { 65 | this.updateTime = updateTime; 66 | } 67 | 68 | public Integer getProjectId() { 69 | return projectId; 70 | } 71 | 72 | public void setProjectId(Integer projectId) { 73 | this.projectId = projectId; 74 | } 75 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocInfo.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import javax.persistence.GeneratedValue; 4 | import javax.persistence.GenerationType; 5 | import javax.persistence.Id; 6 | import javax.persistence.Table; 7 | 8 | @Table(name = "t_doc_info") 9 | public class TDocInfo { 10 | @Id 11 | @GeneratedValue(strategy = GenerationType.IDENTITY) 12 | private Integer id; 13 | 14 | private Integer docId; 15 | 16 | private String versionDoc; 17 | 18 | private Integer contactId; 19 | 20 | private String title; 21 | 22 | private String name; 23 | 24 | private String url; 25 | 26 | private String description; 27 | 28 | public Integer getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Integer id) { 33 | this.id = id; 34 | } 35 | 36 | public Integer getDocId() { 37 | return docId; 38 | } 39 | 40 | public void setDocId(Integer docId) { 41 | this.docId = docId; 42 | } 43 | 44 | public String getVersionDoc() { 45 | return versionDoc; 46 | } 47 | 48 | public void setVersionDoc(String versionDoc) { 49 | this.versionDoc = versionDoc == null ? null : versionDoc.trim(); 50 | } 51 | 52 | public Integer getContactId() { 53 | return contactId; 54 | } 55 | 56 | public void setContactId(Integer contactId) { 57 | this.contactId = contactId; 58 | } 59 | 60 | public String getTitle() { 61 | return title; 62 | } 63 | 64 | public void setTitle(String title) { 65 | this.title = title == null ? null : title.trim(); 66 | } 67 | 68 | public String getName() { 69 | return name; 70 | } 71 | 72 | public void setName(String name) { 73 | this.name = name == null ? null : name.trim(); 74 | } 75 | 76 | public String getUrl() { 77 | return url; 78 | } 79 | 80 | public void setUrl(String url) { 81 | this.url = url == null ? null : url.trim(); 82 | } 83 | 84 | public String getDescription() { 85 | return description; 86 | } 87 | 88 | public void setDescription(String description) { 89 | this.description = description == null ? null : description.trim(); 90 | } 91 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocInform.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocInform { 6 | private Integer id; 7 | 8 | private String name; 9 | 10 | private Date informTime; 11 | 12 | private String content; 13 | 14 | private Byte ifRead; 15 | 16 | private Integer cusId; 17 | 18 | private String informType; 19 | 20 | private Boolean cancel; 21 | 22 | private Date cancelTime; 23 | 24 | private Integer sender; 25 | 26 | private Integer receiver; 27 | 28 | public Integer getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Integer id) { 33 | this.id = id; 34 | } 35 | 36 | public String getName() { 37 | return name; 38 | } 39 | 40 | public void setName(String name) { 41 | this.name = name == null ? null : name.trim(); 42 | } 43 | 44 | public Date getInformTime() { 45 | return informTime; 46 | } 47 | 48 | public void setInformTime(Date informTime) { 49 | this.informTime = informTime; 50 | } 51 | 52 | public String getContent() { 53 | return content; 54 | } 55 | 56 | public void setContent(String content) { 57 | this.content = content == null ? null : content.trim(); 58 | } 59 | 60 | public Byte getIfRead() { 61 | return ifRead; 62 | } 63 | 64 | public void setIfRead(Byte ifRead) { 65 | this.ifRead = ifRead; 66 | } 67 | 68 | public Integer getCusId() { 69 | return cusId; 70 | } 71 | 72 | public void setCusId(Integer cusId) { 73 | this.cusId = cusId; 74 | } 75 | 76 | public String getInformType() { 77 | return informType; 78 | } 79 | 80 | public void setInformType(String informType) { 81 | this.informType = informType == null ? null : informType.trim(); 82 | } 83 | 84 | public Boolean getCancel() { 85 | return cancel; 86 | } 87 | 88 | public void setCancel(Boolean cancel) { 89 | this.cancel = cancel; 90 | } 91 | 92 | public Date getCancelTime() { 93 | return cancelTime; 94 | } 95 | 96 | public void setCancelTime(Date cancelTime) { 97 | this.cancelTime = cancelTime; 98 | } 99 | 100 | public Integer getSender() { 101 | return sender; 102 | } 103 | 104 | public void setSender(Integer sender) { 105 | this.sender = sender; 106 | } 107 | 108 | public Integer getReceiver() { 109 | return receiver; 110 | } 111 | 112 | public void setReceiver(Integer receiver) { 113 | this.receiver = receiver; 114 | } 115 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocMain.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocMain { 6 | private Integer id; 7 | 8 | private String versionSwagger; 9 | 10 | private Integer infoId; 11 | 12 | private String host; 13 | 14 | private String basepath; 15 | 16 | private String schemes; 17 | 18 | private Integer externalDoc; 19 | 20 | private Integer securityDefine; 21 | 22 | private Date createTime; 23 | 24 | private Date updateTime; 25 | 26 | private Integer projectId; 27 | 28 | private Boolean publish; 29 | 30 | public Integer getId() { 31 | return id; 32 | } 33 | 34 | public void setId(Integer id) { 35 | this.id = id; 36 | } 37 | 38 | public String getVersionSwagger() { 39 | return versionSwagger; 40 | } 41 | 42 | public void setVersionSwagger(String versionSwagger) { 43 | this.versionSwagger = versionSwagger == null ? null : versionSwagger.trim(); 44 | } 45 | 46 | public Integer getInfoId() { 47 | return infoId; 48 | } 49 | 50 | public void setInfoId(Integer infoId) { 51 | this.infoId = infoId; 52 | } 53 | 54 | public String getHost() { 55 | return host; 56 | } 57 | 58 | public void setHost(String host) { 59 | this.host = host == null ? null : host.trim(); 60 | } 61 | 62 | public String getBasepath() { 63 | return basepath; 64 | } 65 | 66 | public void setBasepath(String basepath) { 67 | this.basepath = basepath == null ? null : basepath.trim(); 68 | } 69 | 70 | public String getSchemes() { 71 | return schemes; 72 | } 73 | 74 | public void setSchemes(String schemes) { 75 | this.schemes = schemes == null ? null : schemes.trim(); 76 | } 77 | 78 | public Integer getExternalDoc() { 79 | return externalDoc; 80 | } 81 | 82 | public void setExternalDoc(Integer externalDoc) { 83 | this.externalDoc = externalDoc; 84 | } 85 | 86 | public Integer getSecurityDefine() { 87 | return securityDefine; 88 | } 89 | 90 | public void setSecurityDefine(Integer securityDefine) { 91 | this.securityDefine = securityDefine; 92 | } 93 | 94 | public Date getCreateTime() { 95 | return createTime; 96 | } 97 | 98 | public void setCreateTime(Date createTime) { 99 | this.createTime = createTime; 100 | } 101 | 102 | public Date getUpdateTime() { 103 | return updateTime; 104 | } 105 | 106 | public void setUpdateTime(Date updateTime) { 107 | this.updateTime = updateTime; 108 | } 109 | 110 | public Integer getProjectId() { 111 | return projectId; 112 | } 113 | 114 | public void setProjectId(Integer projectId) { 115 | this.projectId = projectId; 116 | } 117 | 118 | public Boolean getPublish() { 119 | return publish; 120 | } 121 | 122 | public void setPublish(Boolean publish) { 123 | this.publish = publish; 124 | } 125 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocPath.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | public class TDocPath { 4 | private Integer id; 5 | 6 | private Integer docId; 7 | 8 | private String path; 9 | 10 | public Integer getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Integer id) { 15 | this.id = id; 16 | } 17 | 18 | public Integer getDocId() { 19 | return docId; 20 | } 21 | 22 | public void setDocId(Integer docId) { 23 | this.docId = docId; 24 | } 25 | 26 | public String getPath() { 27 | return path; 28 | } 29 | 30 | public void setPath(String path) { 31 | this.path = path == null ? null : path.trim(); 32 | } 33 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocPathItem.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocPathItem { 6 | private Integer id; 7 | 8 | private Integer pathId; 9 | 10 | private String protocol; 11 | 12 | private String tagIds; 13 | 14 | private String summary; 15 | 16 | private String operation; 17 | 18 | private String consumes; 19 | 20 | private String produces; 21 | 22 | private String appProtocol; 23 | 24 | private Date createTime; 25 | 26 | private Date updateTime; 27 | 28 | private String interCode; 29 | 30 | private Byte ifValid; 31 | 32 | private String description; 33 | 34 | public Integer getId() { 35 | return id; 36 | } 37 | 38 | public void setId(Integer id) { 39 | this.id = id; 40 | } 41 | 42 | public Integer getPathId() { 43 | return pathId; 44 | } 45 | 46 | public void setPathId(Integer pathId) { 47 | this.pathId = pathId; 48 | } 49 | 50 | public String getProtocol() { 51 | return protocol; 52 | } 53 | 54 | public void setProtocol(String protocol) { 55 | this.protocol = protocol == null ? null : protocol.trim(); 56 | } 57 | 58 | public String getTagIds() { 59 | return tagIds; 60 | } 61 | 62 | public void setTagIds(String tagIds) { 63 | this.tagIds = tagIds == null ? null : tagIds.trim(); 64 | } 65 | 66 | public String getSummary() { 67 | return summary; 68 | } 69 | 70 | public void setSummary(String summary) { 71 | this.summary = summary == null ? null : summary.trim(); 72 | } 73 | 74 | public String getOperation() { 75 | return operation; 76 | } 77 | 78 | public void setOperation(String operation) { 79 | this.operation = operation == null ? null : operation.trim(); 80 | } 81 | 82 | public String getConsumes() { 83 | return consumes; 84 | } 85 | 86 | public void setConsumes(String consumes) { 87 | this.consumes = consumes == null ? null : consumes.trim(); 88 | } 89 | 90 | public String getProduces() { 91 | return produces; 92 | } 93 | 94 | public void setProduces(String produces) { 95 | this.produces = produces == null ? null : produces.trim(); 96 | } 97 | 98 | public String getAppProtocol() { 99 | return appProtocol; 100 | } 101 | 102 | public void setAppProtocol(String appProtocol) { 103 | this.appProtocol = appProtocol == null ? null : appProtocol.trim(); 104 | } 105 | 106 | public Date getCreateTime() { 107 | return createTime; 108 | } 109 | 110 | public void setCreateTime(Date createTime) { 111 | this.createTime = createTime; 112 | } 113 | 114 | public Date getUpdateTime() { 115 | return updateTime; 116 | } 117 | 118 | public void setUpdateTime(Date updateTime) { 119 | this.updateTime = updateTime; 120 | } 121 | 122 | public String getInterCode() { 123 | return interCode; 124 | } 125 | 126 | public void setInterCode(String interCode) { 127 | this.interCode = interCode == null ? null : interCode.trim(); 128 | } 129 | 130 | public Byte getIfValid() { 131 | return ifValid; 132 | } 133 | 134 | public void setIfValid(Byte ifValid) { 135 | this.ifValid = ifValid; 136 | } 137 | 138 | public String getDescription() { 139 | return description; 140 | } 141 | 142 | public void setDescription(String description) { 143 | this.description = description == null ? null : description.trim(); 144 | } 145 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocProject.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocProject { 6 | private Integer id; 7 | 8 | private String name; 9 | 10 | private String description; 11 | 12 | private Date createTime; 13 | 14 | private Date updateTime; 15 | 16 | private Integer cusId; 17 | 18 | private Byte ifValid; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public void setName(String name) { 33 | this.name = name == null ? null : name.trim(); 34 | } 35 | 36 | public String getDescription() { 37 | return description; 38 | } 39 | 40 | public void setDescription(String description) { 41 | this.description = description == null ? null : description.trim(); 42 | } 43 | 44 | public Date getCreateTime() { 45 | return createTime; 46 | } 47 | 48 | public void setCreateTime(Date createTime) { 49 | this.createTime = createTime; 50 | } 51 | 52 | public Date getUpdateTime() { 53 | return updateTime; 54 | } 55 | 56 | public void setUpdateTime(Date updateTime) { 57 | this.updateTime = updateTime; 58 | } 59 | 60 | public Integer getCusId() { 61 | return cusId; 62 | } 63 | 64 | public void setCusId(Integer cusId) { 65 | this.cusId = cusId; 66 | } 67 | 68 | public Byte getIfValid() { 69 | return ifValid; 70 | } 71 | 72 | public void setIfValid(Byte ifValid) { 73 | this.ifValid = ifValid; 74 | } 75 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocReqParam.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | public class TDocReqParam { 4 | private Integer id; 5 | 6 | private Integer pathItemId; 7 | 8 | private String name; 9 | 10 | private String location; 11 | 12 | private String type; 13 | 14 | private String defValue; 15 | 16 | private Boolean isRequired; 17 | 18 | private String cut; 19 | 20 | private Integer refId; 21 | 22 | private Boolean isArr; 23 | 24 | private Integer valueMax; 25 | 26 | private Integer minValue; 27 | 28 | private Integer maxLength; 29 | 30 | private Integer minLength; 31 | 32 | private Integer userDef; 33 | 34 | private String description; 35 | 36 | public Integer getId() { 37 | return id; 38 | } 39 | 40 | public void setId(Integer id) { 41 | this.id = id; 42 | } 43 | 44 | public Integer getPathItemId() { 45 | return pathItemId; 46 | } 47 | 48 | public void setPathItemId(Integer pathItemId) { 49 | this.pathItemId = pathItemId; 50 | } 51 | 52 | public String getName() { 53 | return name; 54 | } 55 | 56 | public void setName(String name) { 57 | this.name = name == null ? null : name.trim(); 58 | } 59 | 60 | public String getLocation() { 61 | return location; 62 | } 63 | 64 | public void setLocation(String location) { 65 | this.location = location == null ? null : location.trim(); 66 | } 67 | 68 | public String getType() { 69 | return type; 70 | } 71 | 72 | public void setType(String type) { 73 | this.type = type == null ? null : type.trim(); 74 | } 75 | 76 | public String getDefValue() { 77 | return defValue; 78 | } 79 | 80 | public void setDefValue(String defValue) { 81 | this.defValue = defValue == null ? null : defValue.trim(); 82 | } 83 | 84 | public Boolean getIsRequired() { 85 | return isRequired; 86 | } 87 | 88 | public void setIsRequired(Boolean isRequired) { 89 | this.isRequired = isRequired; 90 | } 91 | 92 | public String getCut() { 93 | return cut; 94 | } 95 | 96 | public void setCut(String cut) { 97 | this.cut = cut == null ? null : cut.trim(); 98 | } 99 | 100 | public Integer getRefId() { 101 | return refId; 102 | } 103 | 104 | public void setRefId(Integer refId) { 105 | this.refId = refId; 106 | } 107 | 108 | public Boolean getIsArr() { 109 | return isArr; 110 | } 111 | 112 | public void setIsArr(Boolean isArr) { 113 | this.isArr = isArr; 114 | } 115 | 116 | public Integer getValueMax() { 117 | return valueMax; 118 | } 119 | 120 | public void setValueMax(Integer valueMax) { 121 | this.valueMax = valueMax; 122 | } 123 | 124 | public Integer getMinValue() { 125 | return minValue; 126 | } 127 | 128 | public void setMinValue(Integer minValue) { 129 | this.minValue = minValue; 130 | } 131 | 132 | public Integer getMaxLength() { 133 | return maxLength; 134 | } 135 | 136 | public void setMaxLength(Integer maxLength) { 137 | this.maxLength = maxLength; 138 | } 139 | 140 | public Integer getMinLength() { 141 | return minLength; 142 | } 143 | 144 | public void setMinLength(Integer minLength) { 145 | this.minLength = minLength; 146 | } 147 | 148 | public Integer getUserDef() { 149 | return userDef; 150 | } 151 | 152 | public void setUserDef(Integer userDef) { 153 | this.userDef = userDef; 154 | } 155 | 156 | public String getDescription() { 157 | return description; 158 | } 159 | 160 | public void setDescription(String description) { 161 | this.description = description == null ? null : description.trim(); 162 | } 163 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocRespHead.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | public class TDocRespHead { 4 | private Integer id; 5 | 6 | private String appname; 7 | 8 | private String requesturl; 9 | 10 | private String errorcode; 11 | 12 | private String errormsg; 13 | 14 | private Long success; 15 | 16 | public Integer getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Integer id) { 21 | this.id = id; 22 | } 23 | 24 | public String getAppname() { 25 | return appname; 26 | } 27 | 28 | public void setAppname(String appname) { 29 | this.appname = appname == null ? null : appname.trim(); 30 | } 31 | 32 | public String getRequesturl() { 33 | return requesturl; 34 | } 35 | 36 | public void setRequesturl(String requesturl) { 37 | this.requesturl = requesturl == null ? null : requesturl.trim(); 38 | } 39 | 40 | public String getErrorcode() { 41 | return errorcode; 42 | } 43 | 44 | public void setErrorcode(String errorcode) { 45 | this.errorcode = errorcode == null ? null : errorcode.trim(); 46 | } 47 | 48 | public String getErrormsg() { 49 | return errormsg; 50 | } 51 | 52 | public void setErrormsg(String errormsg) { 53 | this.errormsg = errormsg == null ? null : errormsg.trim(); 54 | } 55 | 56 | public Long getSuccess() { 57 | return success; 58 | } 59 | 60 | public void setSuccess(Long success) { 61 | this.success = success; 62 | } 63 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocRespParam.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | public class TDocRespParam { 4 | private Integer id; 5 | 6 | private Integer pathItemId; 7 | 8 | private String name; 9 | 10 | private String type; 11 | 12 | private String cut; 13 | 14 | private Integer refId; 15 | 16 | private Boolean isArr; 17 | 18 | private Integer parrentId; 19 | 20 | private Integer userDef; 21 | 22 | private String description; 23 | 24 | public Integer getId() { 25 | return id; 26 | } 27 | 28 | public void setId(Integer id) { 29 | this.id = id; 30 | } 31 | 32 | public Integer getPathItemId() { 33 | return pathItemId; 34 | } 35 | 36 | public void setPathItemId(Integer pathItemId) { 37 | this.pathItemId = pathItemId; 38 | } 39 | 40 | public String getName() { 41 | return name; 42 | } 43 | 44 | public void setName(String name) { 45 | this.name = name == null ? null : name.trim(); 46 | } 47 | 48 | public String getType() { 49 | return type; 50 | } 51 | 52 | public void setType(String type) { 53 | this.type = type == null ? null : type.trim(); 54 | } 55 | 56 | public String getCut() { 57 | return cut; 58 | } 59 | 60 | public void setCut(String cut) { 61 | this.cut = cut == null ? null : cut.trim(); 62 | } 63 | 64 | public Integer getRefId() { 65 | return refId; 66 | } 67 | 68 | public void setRefId(Integer refId) { 69 | this.refId = refId; 70 | } 71 | 72 | public Boolean getIsArr() { 73 | return isArr; 74 | } 75 | 76 | public void setIsArr(Boolean isArr) { 77 | this.isArr = isArr; 78 | } 79 | 80 | public Integer getParrentId() { 81 | return parrentId; 82 | } 83 | 84 | public void setParrentId(Integer parrentId) { 85 | this.parrentId = parrentId; 86 | } 87 | 88 | public Integer getUserDef() { 89 | return userDef; 90 | } 91 | 92 | public void setUserDef(Integer userDef) { 93 | this.userDef = userDef; 94 | } 95 | 96 | public String getDescription() { 97 | return description; 98 | } 99 | 100 | public void setDescription(String description) { 101 | this.description = description == null ? null : description.trim(); 102 | } 103 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocSystemInfo.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocSystemInfo { 6 | private Integer id; 7 | 8 | private Date appname; 9 | 10 | private Date requesturl; 11 | 12 | private Boolean errorcode; 13 | 14 | private String publisher; 15 | 16 | private String titile; 17 | 18 | private Date cancelTime; 19 | 20 | private String content; 21 | 22 | public Integer getId() { 23 | return id; 24 | } 25 | 26 | public void setId(Integer id) { 27 | this.id = id; 28 | } 29 | 30 | public Date getAppname() { 31 | return appname; 32 | } 33 | 34 | public void setAppname(Date appname) { 35 | this.appname = appname; 36 | } 37 | 38 | public Date getRequesturl() { 39 | return requesturl; 40 | } 41 | 42 | public void setRequesturl(Date requesturl) { 43 | this.requesturl = requesturl; 44 | } 45 | 46 | public Boolean getErrorcode() { 47 | return errorcode; 48 | } 49 | 50 | public void setErrorcode(Boolean errorcode) { 51 | this.errorcode = errorcode; 52 | } 53 | 54 | public String getPublisher() { 55 | return publisher; 56 | } 57 | 58 | public void setPublisher(String publisher) { 59 | this.publisher = publisher == null ? null : publisher.trim(); 60 | } 61 | 62 | public String getTitile() { 63 | return titile; 64 | } 65 | 66 | public void setTitile(String titile) { 67 | this.titile = titile == null ? null : titile.trim(); 68 | } 69 | 70 | public Date getCancelTime() { 71 | return cancelTime; 72 | } 73 | 74 | public void setCancelTime(Date cancelTime) { 75 | this.cancelTime = cancelTime; 76 | } 77 | 78 | public String getContent() { 79 | return content; 80 | } 81 | 82 | public void setContent(String content) { 83 | this.content = content == null ? null : content.trim(); 84 | } 85 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TDocTag.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TDocTag { 6 | private Integer id; 7 | 8 | private Integer docId; 9 | 10 | private String tagName; 11 | 12 | private Integer showOrder; 13 | 14 | private Date createTime; 15 | 16 | private Date updateTime; 17 | 18 | private String description; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public Integer getDocId() { 29 | return docId; 30 | } 31 | 32 | public void setDocId(Integer docId) { 33 | this.docId = docId; 34 | } 35 | 36 | public String getTagName() { 37 | return tagName; 38 | } 39 | 40 | public void setTagName(String tagName) { 41 | this.tagName = tagName == null ? null : tagName.trim(); 42 | } 43 | 44 | public Integer getShowOrder() { 45 | return showOrder; 46 | } 47 | 48 | public void setShowOrder(Integer showOrder) { 49 | this.showOrder = showOrder; 50 | } 51 | 52 | public Date getCreateTime() { 53 | return createTime; 54 | } 55 | 56 | public void setCreateTime(Date createTime) { 57 | this.createTime = createTime; 58 | } 59 | 60 | public Date getUpdateTime() { 61 | return updateTime; 62 | } 63 | 64 | public void setUpdateTime(Date updateTime) { 65 | this.updateTime = updateTime; 66 | } 67 | 68 | public String getDescription() { 69 | return description; 70 | } 71 | 72 | public void setDescription(String description) { 73 | this.description = description == null ? null : description.trim(); 74 | } 75 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TRightDoc.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TRightDoc { 6 | private Integer id; 7 | 8 | private Integer projectId; 9 | 10 | private Date licence; 11 | 12 | private String rightStr; 13 | 14 | public Integer getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Integer id) { 19 | this.id = id; 20 | } 21 | 22 | public Integer getProjectId() { 23 | return projectId; 24 | } 25 | 26 | public void setProjectId(Integer projectId) { 27 | this.projectId = projectId; 28 | } 29 | 30 | public Date getLicence() { 31 | return licence; 32 | } 33 | 34 | public void setLicence(Date licence) { 35 | this.licence = licence; 36 | } 37 | 38 | public String getRightStr() { 39 | return rightStr; 40 | } 41 | 42 | public void setRightStr(String rightStr) { 43 | this.rightStr = rightStr == null ? null : rightStr.trim(); 44 | } 45 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TRightList.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | public class TRightList { 4 | private Integer id; 5 | 6 | private String rightName; 7 | 8 | private String description; 9 | 10 | public Integer getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Integer id) { 15 | this.id = id; 16 | } 17 | 18 | public String getRightName() { 19 | return rightName; 20 | } 21 | 22 | public void setRightName(String rightName) { 23 | this.rightName = rightName == null ? null : rightName.trim(); 24 | } 25 | 26 | public String getDescription() { 27 | return description; 28 | } 29 | 30 | public void setDescription(String description) { 31 | this.description = description == null ? null : description.trim(); 32 | } 33 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/java/com/swagger/idoc/po/TUserLogin.java: -------------------------------------------------------------------------------- 1 | package com.swagger.idoc.po; 2 | 3 | import java.util.Date; 4 | 5 | public class TUserLogin { 6 | private Long id; 7 | 8 | private Date createDate; 9 | 10 | private Date modifyDate; 11 | 12 | private Date loginDate; 13 | 14 | private Integer loginFailureCount; 15 | 16 | private Integer loginCount; 17 | 18 | private String loginIp; 19 | 20 | private Integer userId; 21 | 22 | private String loginType; 23 | 24 | private String authCode; 25 | 26 | private String loginStatus; 27 | 28 | public Long getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Long id) { 33 | this.id = id; 34 | } 35 | 36 | public Date getCreateDate() { 37 | return createDate; 38 | } 39 | 40 | public void setCreateDate(Date createDate) { 41 | this.createDate = createDate; 42 | } 43 | 44 | public Date getModifyDate() { 45 | return modifyDate; 46 | } 47 | 48 | public void setModifyDate(Date modifyDate) { 49 | this.modifyDate = modifyDate; 50 | } 51 | 52 | public Date getLoginDate() { 53 | return loginDate; 54 | } 55 | 56 | public void setLoginDate(Date loginDate) { 57 | this.loginDate = loginDate; 58 | } 59 | 60 | public Integer getLoginFailureCount() { 61 | return loginFailureCount; 62 | } 63 | 64 | public void setLoginFailureCount(Integer loginFailureCount) { 65 | this.loginFailureCount = loginFailureCount; 66 | } 67 | 68 | public Integer getLoginCount() { 69 | return loginCount; 70 | } 71 | 72 | public void setLoginCount(Integer loginCount) { 73 | this.loginCount = loginCount; 74 | } 75 | 76 | public String getLoginIp() { 77 | return loginIp; 78 | } 79 | 80 | public void setLoginIp(String loginIp) { 81 | this.loginIp = loginIp == null ? null : loginIp.trim(); 82 | } 83 | 84 | public Integer getUserId() { 85 | return userId; 86 | } 87 | 88 | public void setUserId(Integer userId) { 89 | this.userId = userId; 90 | } 91 | 92 | public String getLoginType() { 93 | return loginType; 94 | } 95 | 96 | public void setLoginType(String loginType) { 97 | this.loginType = loginType == null ? null : loginType.trim(); 98 | } 99 | 100 | public String getAuthCode() { 101 | return authCode; 102 | } 103 | 104 | public void setAuthCode(String authCode) { 105 | this.authCode = authCode == null ? null : authCode.trim(); 106 | } 107 | 108 | public String getLoginStatus() { 109 | return loginStatus; 110 | } 111 | 112 | public void setLoginStatus(String loginStatus) { 113 | this.loginStatus = loginStatus == null ? null : loginStatus.trim(); 114 | } 115 | } -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: slf4j-api-1.7.5.jar spring-core-4.3.3.RELEASE.jar commons- 3 | codec-1.9.jar jackson-annotations-2.8.1.jar mysql-connector-java-5.1. 4 | 34.jar commons-net-3.3.jar httpcore-4.4.5.jar log4j-1.2.17.jar jackso 5 | n-databind-2.8.1.jar commons-lang3-3.3.2.jar httpmime-4.5.2.jar jacks 6 | on-core-2.8.1.jar jcl-over-slf4j-1.7.5.jar httpclient-4.5.2.jar sprin 7 | g-test-4.3.3.RELEASE.jar commons-logging-1.1.3.jar hamcrest-core-1.3. 8 | jar slf4j-log4j12-1.7.5.jar commons-io-1.3.2.jar javax.servlet-api-3. 9 | 0.1.jar junit-4.12.jar 10 | Main-Class: com.idoc.common.utils.AutoAc 11 | 12 | -------------------------------------------------------------------------------- /idoc-main/idoc-pojo/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-main/idoc-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | idoc-parent 7 | com.swagger.idoc 8 | 1.0-SNAPSHOT 9 | ../idoc-parent/pom.xml 10 | 11 | 4.0.0 12 | 13 | idoc-service 14 | 15 | 16 | 17 | 18 | org.slf4j 19 | slf4j-log4j12 20 | 21 | 22 | org.slf4j 23 | slf4j-api 24 | 25 | 26 | org.slf4j 27 | jcl-over-slf4j 28 | runtime 29 | 30 | 31 | log4j 32 | log4j 33 | 34 | 35 | 36 | 37 | 38 | org.springframework 39 | spring-context 40 | 41 | 42 | org.springframework 43 | spring-aspects 44 | 45 | 46 | org.springframework 47 | spring-context-support 48 | 49 | 50 | org.springframework 51 | spring-core 52 | 53 | 54 | 55 | org.springframework 56 | spring-beans 57 | 58 | 59 | 60 | org.springframework 61 | spring-webmvc 62 | 63 | 64 | 65 | org.springframework 66 | spring-orm 67 | 68 | 69 | 70 | com.swagger.idoc 71 | idoc-dao 72 | 1.0-SNAPSHOT 73 | 74 | 75 | com.swagger.idoc 76 | idoc-common 77 | 1.0-SNAPSHOT 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /idoc-main/idoc-service/src/main/java/com/idoc/service/TestService.java: -------------------------------------------------------------------------------- 1 | package com.idoc.service; 2 | 3 | import com.swagger.idoc.po.TDocInfo; 4 | 5 | /** 6 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 7 | * Project: idoc-main 8 | * Comments: 9 | * Author:cbam 10 | * Create Date:2016/11/13 11 | * Modified By: 12 | * Modified Date: 13 | * Modified Reason: 14 | */ 15 | public interface TestService { 16 | public TDocInfo getTDocInfo(); 17 | } 18 | -------------------------------------------------------------------------------- /idoc-main/idoc-service/src/main/java/com/idoc/service/impl/TestServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.idoc.service.impl; 2 | 3 | import com.idoc.dao.mapper.TDocInfoMapper; 4 | import com.swagger.idoc.po.TDocInfo; 5 | import com.idoc.service.TestService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 11 | * Project: idoc-main 12 | * Comments: 13 | * Author:cbam 14 | * Create Date:2016/11/13 15 | * Modified By: 16 | * Modified Date: 17 | * Modified Reason: 18 | */ 19 | @Service 20 | public class TestServiceImpl implements TestService { 21 | @Autowired 22 | private TDocInfoMapper tDocInfoMapper; 23 | public TDocInfo getTDocInfo() { 24 | TDocInfo tDocInfo = tDocInfoMapper.selectByPrimaryKey(1); 25 | return tDocInfo; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /idoc-main/idoc-service/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-main/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.swagger.idoc 8 | idoc-main 9 | pom 10 | 1.0-SNAPSHOT 11 | 12 | idoc-parent 13 | ../idoc-web 14 | ../idoc-sso 15 | idoc-dao 16 | ../idoc-rest 17 | idoc-pojo 18 | ../idoc-common 19 | idoc-service 20 | 21 | 22 | -------------------------------------------------------------------------------- /idoc-rest/src/main/java/com/idoc/rest/controller/TestController.java: -------------------------------------------------------------------------------- 1 | package com.idoc.rest.controller; 2 | 3 | import com.idoc.rest.service.GetDocInfoByIdService; 4 | import com.swagger.idoc.po.TDocInfo; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.ResponseBody; 9 | 10 | import java.util.HashMap; 11 | import java.util.List; 12 | 13 | /** 14 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 15 | * Project: idoc-main 16 | * Comments: 17 | * Author:cbam 18 | * Create Date:2016/11/13 19 | * Modified By: 20 | * Modified Date: 21 | * Modified Reason: 22 | */ 23 | @Controller 24 | public class TestController { 25 | @Autowired 26 | private GetDocInfoByIdService getDocInfoByIdService; 27 | @ResponseBody 28 | @RequestMapping("/find") 29 | public List getDocInfoById() { 30 | List list = getDocInfoByIdService.getDocMapByPageHelper(); 31 | //HashMap map = getDocInfoByIdService.getDocMap(); 32 | /* Logger logger = Logger.getLogger(TestController.class); 33 | logger.debug("cbamcbam");*/ 34 | return list; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /idoc-rest/src/main/java/com/idoc/rest/service/GetDocInfoByIdService.java: -------------------------------------------------------------------------------- 1 | package com.idoc.rest.service; 2 | 3 | import com.swagger.idoc.po.TDocInfo; 4 | 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | /** 9 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 10 | * Project: idoc-main 11 | * Comments: 12 | * Author:cbam 13 | * Create Date:2016/11/20 14 | * Modified By: 15 | * Modified Date: 16 | * Modified Reason: 17 | */ 18 | 19 | public interface GetDocInfoByIdService { 20 | List getDocInfoById(); 21 | List getDocMapByPageHelper(); 22 | } 23 | -------------------------------------------------------------------------------- /idoc-rest/src/main/java/com/idoc/rest/service/impl/GetDocInfoByIdImpl.java: -------------------------------------------------------------------------------- 1 | package com.idoc.rest.service.impl; 2 | import com.github.pagehelper.PageHelper; 3 | import com.idoc.dao.mapper.TDocInfoMapper; 4 | import com.swagger.idoc.po.TDocInfo; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | import com.idoc.rest.service.GetDocInfoByIdService; 8 | 9 | import java.util.HashMap; 10 | import java.util.List; 11 | 12 | /** 13 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 14 | * Project: idoc-main 15 | * Comments: 16 | * Author:cbam 17 | * Create Date:2016/11/20 18 | * Modified By: 19 | * Modified Date: 20 | * Modified Reason: 21 | */ 22 | @Service 23 | public class GetDocInfoByIdImpl implements GetDocInfoByIdService { 24 | @Autowired 25 | private TDocInfoMapper tDocInfoMapper; 26 | @Override 27 | public List getDocInfoById() { 28 | List list = tDocInfoMapper.selectAll(); 29 | return list; 30 | } 31 | public List getDocMapByPageHelper() { 32 | PageHelper.startPage(1, 10); 33 | List list = tDocInfoMapper.selectAll(); 34 | return list; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /idoc-rest/src/main/resources/config/db.properties: -------------------------------------------------------------------------------- 1 | jdbc.driver=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc:mysql://localhost:3306/idoc 3 | jdbc.username=root 4 | jdbc.password=cbam -------------------------------------------------------------------------------- /idoc-rest/src/main/resources/config/mybatis/SqlMapConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 52 | -------------------------------------------------------------------------------- /idoc-rest/src/main/resources/config/spring/applicationContext-dao.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 52 | 53 | 56 | 63 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /idoc-rest/src/main/resources/config/spring/applicationContext-service.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | classpath:/constant/constant.properties 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /idoc-rest/src/main/resources/config/spring/applicationContext-transaction.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /idoc-rest/src/main/resources/constant/constant.properties: -------------------------------------------------------------------------------- 1 | key=value -------------------------------------------------------------------------------- /idoc-rest/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-rest/src/main/webapp/WEB-INF/common/404.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 21:32 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | Title 12 | 13 | 14 | 15 | 404 16 | 17 | 18 | -------------------------------------------------------------------------------- /idoc-rest/src/main/webapp/WEB-INF/common/error.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 17:17 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 异常处理页面 13 | 14 | 15 | <% 16 | Exception ex = (Exception) request.getAttribute("Exception"); 17 | %> 18 |

Exception:<%=ex.getMessage()%> 19 |

20 | 21 | 22 | -------------------------------------------------------------------------------- /idoc-rest/src/main/webapp/WEB-INF/common/exception.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 21:33 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | Title 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /idoc-rest/src/main/webapp/WEB-INF/pages/test.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 11:03 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | Title 13 | 14 | ee订单ee 15 | ${idoc.host} 16 | 17 | 18 | -------------------------------------------------------------------------------- /idoc-rest/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World CBAM!

4 | 5 | 6 | -------------------------------------------------------------------------------- /idoc-sso/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | idoc-parent 7 | com.swagger.idoc 8 | 1.0-SNAPSHOT 9 | ../idoc-main/idoc-parent/pom.xml 10 | 11 | 4.0.0 12 | war 13 | idoc-sso 14 | 15 | 16 | 17 | 18 | 19 | org.springframework 20 | spring-context 21 | 22 | 23 | org.springframework 24 | spring-aspects 25 | 26 | 27 | org.springframework 28 | spring-context-support 29 | 30 | 31 | org.springframework 32 | spring-core 33 | 34 | 35 | commons-logging 36 | commons-logging 37 | 38 | 39 | 40 | 41 | 42 | org.springframework 43 | spring-beans 44 | 45 | 46 | 47 | org.springframework 48 | spring-webmvc 49 | 50 | 51 | 52 | org.springframework 53 | spring-orm 54 | 55 | 56 | 57 | 58 | com.fasterxml.jackson.core 59 | jackson-databind 60 | 61 | 62 | com.fasterxml.jackson.core 63 | jackson-annotations 64 | 65 | 66 | com.fasterxml.jackson.core 67 | jackson-core 68 | 69 | 70 | org.codehaus.jackson 71 | jackson-mapper-asl 72 | 73 | 74 | 75 | 76 | com.swagger.idoc 77 | idoc-dao 78 | 1.0-SNAPSHOT 79 | 80 | 81 | com.swagger.idoc 82 | idoc-common 83 | 1.0-SNAPSHOT 84 | 85 | 86 | 87 | 88 | 89 | org.apache.maven.plugins 90 | maven-compiler-plugin 91 | 92 | 1.8 93 | 1.8 94 | 95 | 96 | 97 | idoc-sso 98 | 99 | -------------------------------------------------------------------------------- /idoc-sso/src/main/java/com/idoc/sso/controller/Test.java: -------------------------------------------------------------------------------- 1 | package com.idoc.sso.controller; 2 | 3 | import com.idoc.common.utils.BaseService; 4 | import com.idoc.sso.service.impl.TestById; 5 | import com.swagger.idoc.po.TDocInfo; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | import org.springframework.web.bind.annotation.ResponseBody; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 15 | * Project: idoc-parent 16 | * Comments: 17 | * Author:cbam 18 | * Create Date:2016/12/10 19 | * Modified By: 20 | * Modified Date: 21 | * Modified Reason: 22 | */ 23 | @Controller 24 | public class Test { 25 | @Autowired 26 | private TestById testById; 27 | @ResponseBody 28 | @RequestMapping("/f") 29 | public TDocInfo getDocInfoById() { 30 | TDocInfo tDocInfo = testById.queryById(1); 31 | return tDocInfo; 32 | } 33 | @RequestMapping("/f2") 34 | @ResponseBody 35 | public List get() { 36 | List list = testById.queryAll(); 37 | return list; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /idoc-sso/src/main/java/com/idoc/sso/controller/TestController.java: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | package com.idoc.sso.controller; 4 | 5 | import com.idoc.common.utils.JedisClientSingle; 6 | import com.idoc.sso.service.GetDocInfoByIdService; 7 | import com.swagger.idoc.po.TDocInfo; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.ResponseBody; 12 | 13 | import java.util.List; 14 | 15 | 16 | 17 | 18 | 19 | 20 | */ 21 | /** 22 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 23 | * Project: idoc-main 24 | * Comments: 25 | * Author:cbam 26 | * Create Date:2016/11/20 27 | * Modified By: 28 | * Modified Date: 29 | * Modified Reason: 30 | *//* 31 | 32 | 33 | @Controller 34 | public class TestController { 35 | @Autowired 36 | private GetDocInfoByIdService getDocInfoByIdService; 37 | @Autowired 38 | private JedisClientSingle jedisClientSingle; 39 | 40 | */ 41 | /* @Value("${KEY}") 42 | private String key;*//* 43 | */ 44 | /* 45 | 46 | @ResponseBody 47 | @RequestMapping("/find") 48 | public TDocInfo getDocInfoById() { 49 | TDocInfo tDocInfo = getDocInfoByIdService.getDocInfoById(); 50 | *//* 51 | 52 | */ 53 | /* Logger logger = Logger.getLogger(TestController.class); 54 | logger.debug("cbamcbam");*//* 55 | */ 56 | /* 57 | 58 | *//* 59 | 60 | */ 61 | /*jedisClientSingle.set("key", "cbam"); 62 | String target = jedisClientSingle.get("key"); 63 | System.out.println(target);*//* 64 | */ 65 | /* 66 | 67 | // System.out.println("key => " + key); 68 | return tDocInfo; 69 | } 70 | } 71 | 72 | */ 73 | -------------------------------------------------------------------------------- /idoc-sso/src/main/java/com/idoc/sso/service/GetDocInfoByIdService.java: -------------------------------------------------------------------------------- 1 | package com.idoc.sso.service; 2 | 3 | import com.swagger.idoc.po.TDocInfo; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 9 | * Project: idoc-main 10 | * Comments: 11 | * Author:cbam 12 | * Create Date:2016/11/20 13 | * Modified By: 14 | * Modified Date: 15 | * Modified Reason: 16 | */ 17 | 18 | public interface GetDocInfoByIdService { 19 | TDocInfo getDocInfoById(); 20 | } 21 | -------------------------------------------------------------------------------- /idoc-sso/src/main/java/com/idoc/sso/service/impl/GetDocInfoByIdImpl.java: -------------------------------------------------------------------------------- 1 | package com.idoc.sso.service.impl; 2 | import com.idoc.dao.mapper.TDocInfoMapper; 3 | import com.swagger.idoc.po.TDocInfo; 4 | import com.idoc.sso.service.GetDocInfoByIdService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 12 | * Project: idoc-main 13 | * Comments: 14 | * Author:cbam 15 | * Create Date:2016/11/20 16 | * Modified By: 17 | * Modified Date: 18 | * Modified Reason: 19 | */ 20 | @Service 21 | public class GetDocInfoByIdImpl implements GetDocInfoByIdService { 22 | @Autowired 23 | private TDocInfoMapper tDocInfoMapper; 24 | @Override 25 | public TDocInfo getDocInfoById() { 26 | TDocInfo tDocInfo = tDocInfoMapper.selectByPrimaryKey(String.valueOf(1)); 27 | return tDocInfo; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /idoc-sso/src/main/java/com/idoc/sso/service/impl/TestById.java: -------------------------------------------------------------------------------- 1 | package com.idoc.sso.service.impl; 2 | 3 | import com.idoc.common.utils.BaseService; 4 | import com.swagger.idoc.po.TDocInfo; 5 | import org.springframework.stereotype.Service; 6 | 7 | /** 8 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 9 | * Project: idoc-parent 10 | * Comments: 11 | * Author:cbam 12 | * Create Date:2016/12/10 13 | * Modified By: 14 | * Modified Date: 15 | * Modified Reason: 16 | */ 17 | @Service 18 | public class TestById extends BaseService { 19 | } 20 | -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/config/db.properties: -------------------------------------------------------------------------------- 1 | jdbc.driver=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc:mysql://localhost:3306/idoc 3 | jdbc.username=root 4 | jdbc.password=cbam -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/config/mybatis/SqlMapConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 23 | -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/config/redis.properties: -------------------------------------------------------------------------------- 1 | # Redis settings 2 | #redis.host=192.168.20.101 3 | #redis.port=6380 4 | #redis.pass=foobared 5 | redis.host=127.0.0.1 6 | redis.port=6379 7 | redis.pass= 8 | 9 | redis.maxIdle=300 10 | redis.maxActive=600 11 | redis.maxWait=1000 12 | redis.testOnBorrow=true -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/config/spring/applicationContext-dao.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 51 | 52 | 55 | 62 | 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/config/spring/applicationContext-service.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/config/spring/applicationContext-transaction.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/config/spring/redis-config.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 76 | -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/constant/constant.properties: -------------------------------------------------------------------------------- 1 | KEY=123 -------------------------------------------------------------------------------- /idoc-sso/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-sso/src/main/webapp/WEB-INF/common/404.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 21:32 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | Title 12 | 13 | 14 | 15 | 404 16 | 17 | 18 | -------------------------------------------------------------------------------- /idoc-sso/src/main/webapp/WEB-INF/common/error.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 17:17 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 异常处理页面 13 | 14 | 15 | <% 16 | Exception ex = (Exception) request.getAttribute("Exception"); 17 | %> 18 |

Exception:<%=ex.getMessage()%> 19 |

20 | 21 | 22 | -------------------------------------------------------------------------------- /idoc-sso/src/main/webapp/WEB-INF/common/exception.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 21:33 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | Title 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /idoc-sso/src/main/webapp/WEB-INF/pages/test.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 11:03 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | Title 13 | 14 | ee订单ee 15 | ${idoc.host} 16 | 17 | 18 | -------------------------------------------------------------------------------- /idoc-sso/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World CBAM!

4 | 5 | 6 | -------------------------------------------------------------------------------- /idoc-sso/src/test/java/Test.java: -------------------------------------------------------------------------------- 1 | import org.apache.log4j.Logger; 2 | 3 | public class Test { 4 | public static void main(String[] args) { 5 | Logger logger = Logger.getLogger(Test.class); 6 | logger.info("cbam"); 7 | } 8 | } -------------------------------------------------------------------------------- /idoc-sso/src/test/java/com/idoc/sso/controller/BaseJunit4Test.java: -------------------------------------------------------------------------------- 1 | package com.idoc.sso.controller; 2 | 3 | import org.junit.runner.RunWith; 4 | import org.springframework.test.context.ContextConfiguration; 5 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 6 | import org.springframework.test.context.web.WebAppConfiguration; 7 | 8 | /** 9 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 10 | * Project: idoc-parent 11 | * Comments: 12 | * Author:cbam 13 | * Create Date:2016/11/25 14 | * Modified By: 15 | * Modified Date: 16 | * Modified Reason: 17 | */ 18 | @RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试 19 | @ContextConfiguration({"/config/spring/applicationContext-*.xml","classpath:/config/spring/springmvc.xml"}) //加载配置文件 20 | @WebAppConfiguration 21 | //------------如果加入以下代码,所有继承该类的测试类都会遵循该配置,也可以不加,在测试类的方法上 22 | // 控制事务,参见下一个实例 23 | //这个非常关键,如果不加入这个注解配置,事务控制就会完全失效! 24 | //@Transactional 25 | //这里的事务关联到配置文件中的事务控制器(transactionManager = "transactionManager"),同时 26 | // 指定自动回滚(defaultRollback = true)。这样做操作的数据才不会污染数据库! 27 | //@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true) 28 | //------------ 29 | public class BaseJunit4Test { 30 | } -------------------------------------------------------------------------------- /idoc-web/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | idoc-parent 5 | com.swagger.idoc 6 | 1.0-SNAPSHOT 7 | ../idoc-main/idoc-parent/pom.xml 8 | 9 | 4.0.0 10 | idoc-web 11 | war 12 | idoc-web Maven Webapp 13 | http://maven.apache.org 14 | 15 | 16 | 17 | 18 | org.springframework 19 | spring-test 20 | 21 | 22 | junit 23 | junit 24 | test 25 | 26 | 27 | 28 | 29 | org.springframework 30 | spring-context 31 | 32 | 33 | org.springframework 34 | spring-aspects 35 | 36 | 37 | org.springframework 38 | spring-context-support 39 | 40 | 41 | org.springframework 42 | spring-core 43 | 44 | 45 | commons-logging 46 | commons-logging 47 | 48 | 49 | 50 | 51 | 52 | org.springframework 53 | spring-beans 54 | 55 | 56 | 57 | org.springframework 58 | spring-webmvc 59 | 60 | 61 | 62 | org.springframework 63 | spring-orm 64 | 65 | 66 | 67 | 68 | commons-fileupload 69 | commons-fileupload 70 | 71 | 72 | 73 | org.apache.commons 74 | commons-io 75 | 76 | 77 | 78 | com.swagger.idoc 79 | idoc-service 80 | 1.0-SNAPSHOT 81 | 82 | 83 | 84 | 85 | 86 | org.apache.maven.plugins 87 | maven-compiler-plugin 88 | 89 | 1.8 90 | 1.8 91 | 92 | 93 | 94 | idoc-web 95 | 96 | 97 | -------------------------------------------------------------------------------- /idoc-web/src/main/java/com/idoc/controller/TestController.java: -------------------------------------------------------------------------------- 1 | package com.idoc.controller; 2 | 3 | import com.idoc.service.TestService; 4 | import com.swagger.idoc.po.TDocInfo; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.ResponseBody; 9 | 10 | /** 11 | * CopyRright (c)2014-2016 Haerbin Hearglobal Co.,Ltd 12 | * Project: idoc-main 13 | * Comments: 14 | * Author:cbam 15 | * Create Date:2016/11/13 16 | * Modified By: 17 | * Modified Date: 18 | * Modified Reason: 19 | */ 20 | @Controller 21 | public class TestController { 22 | @Autowired 23 | private TestService testService; 24 | 25 | @RequestMapping("/test") 26 | @ResponseBody 27 | public TDocInfo getTestInfo() { 28 | TDocInfo tDocInfo = testService.getTDocInfo(); 29 | return tDocInfo; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /idoc-web/src/main/resources/config/db.properties: -------------------------------------------------------------------------------- 1 | jdbc.driver=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc:mysql://localhost:3306/idoc 3 | jdbc.username=root 4 | jdbc.password=cbam -------------------------------------------------------------------------------- /idoc-web/src/main/resources/config/mybatis/SqlMapConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 52 | -------------------------------------------------------------------------------- /idoc-web/src/main/resources/config/spring/applicationContext-dao.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 31 | 32 | 52 | 53 | 56 | 63 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /idoc-web/src/main/resources/config/spring/applicationContext-service.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /idoc-web/src/main/resources/config/spring/applicationContext-transaction.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 17 | 18 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /idoc-web/src/main/resources/rebel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /idoc-web/src/main/webapp/WEB-INF/common/404.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 21:32 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | Title 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /idoc-web/src/main/webapp/WEB-INF/common/error.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 17:17 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 异常处理页面 13 | 14 | 15 | <% 16 | Exception ex = (Exception) request.getAttribute("Exception"); 17 | %> 18 |

Exception:<%=ex.getMessage()%> 19 |

20 | 21 | 22 | -------------------------------------------------------------------------------- /idoc-web/src/main/webapp/WEB-INF/common/exception.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 21:33 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | Title 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /idoc-web/src/main/webapp/WEB-INF/pages/test.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: cbam 4 | Date: 2016/10/14 5 | Time: 11:03 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | Title 13 | 14 | ee订单ee 15 | ${idoc.host} 16 | 17 | 18 | -------------------------------------------------------------------------------- /idoc-web/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World CBAM!

4 | 5 | 6 | --------------------------------------------------------------------------------