├── .classpath ├── .gitignore ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.core.resources.prefs ├── org.eclipse.core.runtime.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container └── org.eclipse.wst.jsdt.ui.superType.name ├── HY.日志系统部署说明.docx ├── LICENSE ├── README.md ├── WebContent ├── LICENSE ├── META-INF │ ├── MANIFEST.MF │ └── xfire │ │ └── services.xml ├── WEB-INF │ ├── api │ │ ├── api.AppInterfaces.Error.Log.xml │ │ ├── api.AppInterfaces.Error.xml │ │ └── api.AppRestfuls.xml │ ├── cloud.Config.xml │ ├── db │ │ ├── db.Berkeley.xml │ │ ├── db.InitDB.v1.0.mysql.sql │ │ ├── db.InitDB.v1.0.sqlserver.sql │ │ ├── db.Log.xml │ │ ├── db.MailTime.xml │ │ └── db.Server.xml │ ├── ftl │ │ └── Hello.ftl │ ├── job.Config.xml │ ├── lib │ │ ├── activation-1.1.jar │ │ ├── activemq-core-5.10.0.jar │ │ ├── ant-1.6.5.jar │ │ ├── antlr-2.7.7.jar │ │ ├── aopalliance-1.0.jar │ │ ├── aopalliance-repackaged-2.3.0-b05.jar │ │ ├── archaius-core-0.7.3.jar │ │ ├── asm-1.0-RC3.jar │ │ ├── asm-3.3.1.jar │ │ ├── aspectjrt-1.6.12.jar │ │ ├── aspectjweaver-1.7.1.jar │ │ ├── bonecp-0.8.0-rc1.jar │ │ ├── bonecp-spring-0.8.0-rc1.jar │ │ ├── c3p0-0.9.2-pre5.jar │ │ ├── cal10n-api-0.7.4.jar │ │ ├── cglib-2.2.2.jar │ │ ├── commons-beanutils-1.8.3.jar │ │ ├── commons-collections-3.2.1.jar │ │ ├── commons-configuration-1.8.jar │ │ ├── commons-dbcp-1.2.2.jar │ │ ├── commons-io-2.3.jar │ │ ├── commons-lang-2.6.jar │ │ ├── commons-logging-1.1.1.jar │ │ ├── commons-pool-1.6.jar │ │ ├── commons-pool2-2.0.jar │ │ ├── dbunit-2.4.9.jar │ │ ├── dom4j-1.6.1.jar │ │ ├── dozer-5.3.2.jar │ │ ├── fel.jar │ │ ├── freemarker-2.3.19.jar │ │ ├── grizzly-framework-2.3.8.jar │ │ ├── grizzly-http-2.3.8.jar │ │ ├── grizzly-http-server-2.3.8.jar │ │ ├── grizzly-http-servlet-2.3.8.jar │ │ ├── gson-2.2.2.jar │ │ ├── guava-13.0.1.jar │ │ ├── guava-19.0.jar │ │ ├── guice-4.1.0.jar │ │ ├── guice-assistedinject-4.0.jar │ │ ├── guice-grapher-4.0.jar │ │ ├── guice-multibindings-4.0.jar │ │ ├── hamcrest-core-1.3.jar │ │ ├── hessian-3.1.5.jar │ │ ├── hibernate-commons-annotations-4.0.1.Final.jar │ │ ├── hibernate-core-4.1.8.Final.jar │ │ ├── hibernate-jpa-2.0-api-1.0.1.Final.jar │ │ ├── hibernate-validator-4.3.0.Final.jar │ │ ├── hk2-api-2.3.0-b05.jar │ │ ├── hk2-locator-2.3.0-b05.jar │ │ ├── hk2-utils-2.3.0-b05.jar │ │ ├── httpclient-4.3.1.jar │ │ ├── httpcore-4.3.jar │ │ ├── httpmime-4.3.1.jar │ │ ├── hy.common.base.jar │ │ ├── hy.common.berkeley.jar │ │ ├── hy.common.db.jar │ │ ├── hy.common.file.jar │ │ ├── hy.common.mail.jar │ │ ├── hy.common.net.jar │ │ ├── hy.common.redis.jar │ │ ├── hy.common.report.jar │ │ ├── hy.common.tpool.jar │ │ ├── jackson-annotations-2.6.0.jar │ │ ├── jackson-core-2.6.6.jar │ │ ├── jackson-databind-2.6.6.jar │ │ ├── jackson-dataformat-cbor-2.6.6.jar │ │ ├── jackson-dataformat-xml-2.5.4.jar │ │ ├── jackson-module-jaxb-annotations-2.5.4.jar │ │ ├── javassist-3.15.0-GA.jar │ │ ├── javax.annotation-api-1.2.jar │ │ ├── javax.inject-2.3.0-b05.jar │ │ ├── javax.mail.jar │ │ ├── javax.servlet-api-3.0.1.jar │ │ ├── javax.ws.rs-api-2.0.jar │ │ ├── jboss-logging-3.1.0.GA.jar │ │ ├── jboss-transaction-api_1.1_spec-1.0.0.Final.jar │ │ ├── jcl-over-slf4j-1.6.6.jar │ │ ├── je-6.4.25.jar │ │ ├── jedis-2.6.0.jar │ │ ├── jersey-apache-client4-1.19.1.jar │ │ ├── jersey-client-1.17.jar │ │ ├── jersey-client-2.9.jar │ │ ├── jersey-common-2.9.jar │ │ ├── jersey-container-grizzly2-http-2.9.jar │ │ ├── jersey-container-grizzly2-servlet-2.9.jar │ │ ├── jersey-container-servlet-2.9.jar │ │ ├── jersey-container-servlet-core-2.9.jar │ │ ├── jersey-core-1.17.jar │ │ ├── jersey-guava-2.9.jar │ │ ├── jersey-server-2.9.jar │ │ ├── json-smart-2.0-RC3.jar │ │ ├── jtds-1.2.jar │ │ ├── junit-4.11.jar │ │ ├── log4j-1.2.17.jar │ │ ├── mail-1.4.6-rc1.jar │ │ ├── mchange-commons-java-0.2.3.jar │ │ ├── mysql-connector-java-5.1.30-bin.jar │ │ ├── noggit-0.5.jar │ │ ├── ognl-2.6.9.jar │ │ ├── org.osgi.core-5.0.0.jar │ │ ├── osgi-resource-locator-1.0.1.jar │ │ ├── poi-3.10-FINAL.jar │ │ ├── poi-excelant-3.10-FINAL.jar │ │ ├── poi-ooxml-3.10-FINAL.jar │ │ ├── poi-ooxml-schemas-3.10-FINAL.jar │ │ ├── quartz-2.1.7.jar │ │ ├── servo-core-0.10.1.jar │ │ ├── servo-internal-0.10.1.jar │ │ ├── slf4j-api-1.7.2.jar │ │ ├── slf4j-ext-1.7.2.jar │ │ ├── slf4j-jdk14-1.7.2.jar │ │ ├── slf4j-log4j12-1.7.2.jar │ │ ├── solr-solrj-4.10.2.jar │ │ ├── spring-aop-3.1.3.RELEASE.jar │ │ ├── spring-asm-3.1.3.RELEASE.jar │ │ ├── spring-beans-3.1.3.RELEASE.jar │ │ ├── spring-context-3.1.3.RELEASE.jar │ │ ├── spring-context-support-3.1.3.RELEASE.jar │ │ ├── spring-core-3.1.3.RELEASE.jar │ │ ├── spring-data-commons-core-1.4.0.RELEASE.jar │ │ ├── spring-data-jpa-1.2.0.RELEASE.jar │ │ ├── spring-data-redis-1.0.2.RELEASE.jar │ │ ├── spring-expression-3.1.3.RELEASE.jar │ │ ├── spring-jdbc-3.1.2.RELEASE.jar │ │ ├── spring-jms-3.1.3.RELEASE.jar │ │ ├── spring-mock-2.0.8.jar │ │ ├── spring-orm-3.1.2.RELEASE.jar │ │ ├── spring-remoting-2.0.8.jar │ │ ├── spring-tx-3.1.3.RELEASE.jar │ │ ├── spring-web-3.1.3.RELEASE.jar │ │ ├── spring-webmvc-3.1.3.RELEASE.jar │ │ ├── sqljdbc4.jar │ │ ├── unitils-2.4.jar │ │ ├── validation-api-1.0.0.GA.jar │ │ ├── wstx-asl-3.2.7.jar │ │ ├── xjava.jar │ │ ├── xstream-1.4.9.jar │ │ └── zookeeper-3.4.6.jar │ ├── startup.Config.xml │ ├── sys.Config.xml │ ├── sys.DB.Config.xml │ ├── sys.ServerConfig.xml │ ├── sys.Version.xml │ ├── template │ │ ├── template.goto.html │ │ ├── template.initDB.html │ │ ├── template.initDBContent.html │ │ ├── template.showError.html │ │ ├── template.showErrorContent.html │ │ ├── template.showErrorLog.html │ │ ├── template.showErrorLogContent.html │ │ ├── template.showInterface.html │ │ ├── template.showInterfaceContent.html │ │ ├── template.showInterfaceParam.html │ │ ├── template.showTotal.html │ │ └── template.showTotalContent.html │ └── web.xml ├── diff │ ├── difflib.js │ ├── diffview.css │ ├── diffview.js │ └── dojo.js ├── index.jsp ├── jquery │ ├── LICENSE.txt │ ├── images │ │ ├── ui-bg_glass_75_d0e5f5_1x400.png │ │ ├── ui-bg_glass_85_dfeffc_1x400.png │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ ├── ui-bg_gloss-wave_55_5c9ccc_500x100.png │ │ ├── ui-bg_inset-hard_100_f5f8f9_1x100.png │ │ ├── ui-bg_inset-hard_100_fcfdfd_1x100.png │ │ ├── ui-icons_217bc0_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_469bdd_256x240.png │ │ ├── ui-icons_6da8d5_256x240.png │ │ ├── ui-icons_cd0a0a_256x240.png │ │ ├── ui-icons_d8e7f3_256x240.png │ │ └── ui-icons_f9bd01_256x240.png │ ├── index.html │ ├── jquery-ui.css │ ├── jquery-ui.js │ ├── jquery-ui.min.css │ ├── jquery-ui.min.js │ ├── jquery-ui.structure.css │ ├── jquery-ui.structure.min.css │ ├── jquery-ui.theme.css │ ├── jquery-ui.theme.min.css │ ├── jquery.min.js │ └── package.json ├── jsoneditor-3.1.2 │ ├── ace.js │ ├── app-min.css │ ├── app-min.js │ ├── asset │ │ ├── ace │ │ │ ├── ace.js │ │ │ ├── ext-searchbox.js │ │ │ ├── mode-json.js │ │ │ ├── theme-jsoneditor.js │ │ │ ├── theme-textmate.js │ │ │ └── worker-json.js │ │ └── jsonlint │ │ │ └── jsonlint.js │ ├── img │ │ └── jsoneditor-icons.png │ ├── jquery.min.js │ ├── jsoneditor.css │ ├── jsoneditor.js │ ├── jsoneditor.min.css │ └── jsoneditor.min.js └── message.jsp ├── conf ├── properties │ ├── development │ │ ├── application.properties │ │ └── log4j.properties │ ├── production │ │ ├── application.properties │ │ └── log4j.properties │ └── testing │ │ ├── application.properties │ │ └── log4j.properties └── xml │ └── spring │ ├── applicationContext.xml │ └── dispatcher-servlet.xml ├── sonar-project.properties ├── src ├── MANIFEST.MF └── org │ └── hy │ └── log │ ├── appInterfaces │ ├── ILogService.java │ ├── IServerService.java │ ├── ITestService.java │ ├── InterfaceInfo.java │ ├── restful │ │ ├── LogServiceImpl.java │ │ ├── ServerServiceImpl.java │ │ └── TestServiceImpl.java │ └── webservice │ │ └── TestServiceImpl.java │ ├── common │ ├── ApplicationRestfuls.java │ ├── Base.java │ ├── BaseAppMessage.java │ ├── BaseCache.java │ ├── BaseDAO.java │ ├── BaseEntity.java │ ├── BaseEnum.java │ ├── BaseJunit.java │ ├── BaseModel.java │ ├── BaseMsg.java │ ├── BaseService.java │ ├── CustomWebBindingInitializer.java │ ├── DateEditor.java │ └── InitConfig.java │ ├── dao │ ├── ILogInfoDAO.java │ ├── ILogRegisterDAO.java │ ├── IMessageKeyDAO.java │ ├── IServerInfoDAO.java │ └── impl │ │ ├── LogInfoDAOImpl.java │ │ ├── LogRegisterDAOImpl.java │ │ └── MailTimeDAO.java │ ├── enums │ └── ERegisterType.java │ ├── model │ ├── DBTableInfo.java │ ├── LogInfo.java │ ├── LogRegister.java │ ├── MessageKey.java │ └── Version.java │ ├── msg │ ├── MsgErrorResponse.java │ ├── MsgLogInfoRequest.java │ └── MsgLogRegisterRequest.java │ ├── service │ ├── ILogInfoService.java │ ├── IServerInfoService.java │ └── impl │ │ ├── LogInfoService.java │ │ └── ServerInfoService.java │ └── view │ └── ExampleController.java ├── test └── org │ └── hy │ └── log │ ├── common │ ├── JU_Rest_CreateLog.java │ └── JU_Rest_CreateLog.xml │ ├── dao │ └── impl │ │ └── JU_LogInfoDAOImpl.java │ └── service │ └── JU_LogInfoService.java └── testScript └── restful ├── Log.Create.A001.记录日志.001.xml ├── Log.Register.A001.注册系统.01.普通单表.xml ├── Log.Register.A001.注册系统.02.按年分区.xml ├── Log.Register.A001.注册系统.02.按月分区.xml ├── Log.Register.A001.注册系统.03.按月分区.xml ├── Log.Register.A001.注册系统.04.按旬分区.xml ├── Log.Register.A001.注册系统.05.按周分区.xml ├── Log.Register.A001.注册系统.06.按天分区.xml └── Log.Register.A001.注册系统.07.按小时分区.xml /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /LogWeb_bdb 3 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | LogWeb 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.wst.common.project.facet.core.nature 33 | org.eclipse.jdt.core.javanature 34 | org.eclipse.wst.jsdt.core.jsNature 35 | 36 | 37 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.runtime.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | line.separator=\n 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.7 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.7 12 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /HY.日志系统部署说明.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/HY.日志系统部署说明.docx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | LogWeb 2 | 3 | 高性能在线记录日志系统(支持集群管理) 4 | 5 | 6 | 7 | 1. 初始数据库:日志系统在设计初就考虑到了方便部署的方案。可分为三步。 8 | 9 | 第一步:配置好数据库连接信息(db.DB.config.xml),只须一个空的数据库即可。 10 | 11 | 第二步:运行日志服务。就是启动Tomcat了。 12 | 13 | 第三步:浏览器中访问 http://127.0.0.1:8080/LogWeb/services/server/initDB 页面,片刻之后数据库所有对象及初始数据就建立好了。 14 | 15 | 2. 日志接口服务:采用Restful,客户端可以使用各种语言(比如 Java 程序、Perl、Ruby、Python、PHP 和 Javascript[包括 Ajax])实现。 16 | 17 | 3. 服务间通讯:采用Socket TCP通讯协议。主端口为1921,浮动端口为17000~17999,均可在sys.ServerConfig.xml配置中修改。请保证服务器防火墙允许这些端口的通讯。 18 | 19 | 4. 故障恢复:采用Berkeley DB文件级数据库,即使关系性数据库异常无法访问时,也能保证日志数据不丢失。 20 | 等关系性数据库正常后,重启本服务即可自动恢复日志数据并写入到数据库中。 21 | 是否启用可以配置sys.config.xml中设置,开启后安全性提高,但性能所有下降。 22 | 23 | 5. 接口通讯签名:可对接口加签名验证,防止接口报文数据被捕获后模拟发包。可分为如下两种类型: 24 | 25 | 5.1 系统级粒度:系统下所有接口均使用相同的密钥签名。 26 | 27 | 5.2 接口级粒度:每个接口都可设置不同的密钥签名。 28 | 29 | 5.3 可通过数据库TMessageKeys表进行配置。表中密钥,也是[定时缓存](WebContent/WEB-INF/job.Config.xml)的,见job.Config.xml中的"缓存消息密钥"。 30 | 31 | 6. 接口及监控页面(默认密码logweb) 32 | 33 | ➢ 分析中心页面 http://127.0.0.1:8080/LogWeb/analyses 34 | 35 | ➢ 接口API页面 http://127.0.0.1:8080/LogWeb/services/server/showInterface 36 | 37 | ➢ 接口访问量页面 http://127.0.0.1:8080/LogWeb/services/server/showTotal 38 | 39 | ➢ 数据库SQL执行情况的监控页面(支持集群) http://127.0.0.1:8080/LogWeb/analyses/analyseDB 40 | 41 | ➢ 数据库SQL组执行情况的监控页面(支持集群) http://127.0.0.1:8080/LogWeb/analyses/analyseDB?type=Group 42 | 43 | ➢ 配置文件重新加载页面(支持集群) http://127.0.0.1:8080/LogWeb/analyses/analyseObject 44 | 45 | ➢ 查看集群服务及状态列表 http://127.0.0.1:8080/LogWeb/analyses/analyseObject?cluster=Y 46 | 47 | ➢ SQL执行日志页面 http://127.0.0.1:8080/LogWeb/analyses/analyseObject?xid=$SQLBusway 48 | 49 | ➢ SQL执行异常的日志页面 http://127.0.0.1:8080/LogWeb/analyses/analyseObject?xid=$SQLBuswayError 50 | 51 | ➢ 查看配置参数页面 http://127.0.0.1:8080/LogWeb/analyses/analyseObject?xid=SYSParam 52 | 53 | ➢ 手工执行SQL组页面(支持集群) http://127.0.0.1:8080/LogWeb/analyses/analyseObject?xid=GXSQL_MailTime 54 | 55 | ➢ 手工执行定时任务页面(支持集群) http://127.0.0.1:8080/LogWeb/analyses/analyseObject?xid=JOB_CacheMessageKey 56 | 57 | 58 | 59 | ===== 60 | #### 客户端调用演示代码 61 | ```java 62 | import java.net.URLDecoder; 63 | import java.util.Hashtable; 64 | import java.util.Map; 65 | 66 | import com.sun.jersey.api.client.Client; 67 | import com.sun.jersey.api.client.ClientResponse; 68 | import com.sun.jersey.api.client.WebResource; 69 | 70 | 71 | 72 | /** 73 | * Rest服务请求方法 74 | * 75 | * @author ZhengWei(HY) 76 | * @createDate 2014-12-30 77 | * @version v1.0 78 | */ 79 | public class BaseAppMessage 80 | { 81 | 82 | private static Client $Client = Client.create(); 83 | 84 | private static Map $WebResources = new Hashtable(); 85 | 86 | 87 | 88 | /** 89 | * Rest服务请求方法 90 | * 91 | * @author ZhengWei(HY) 92 | * @createDate 2014-12-30 93 | * @version v1.0 94 | * 95 | * @param i_URL 96 | * @param i_Data 97 | * @param i_DataECode 响应结果的字符类型。如UTF-8 98 | * @return 99 | */ 100 | public static String restRequest(String i_URL ,Object i_Data ,String i_DataECode) 101 | { 102 | String v_Result = null; 103 | 104 | try 105 | { 106 | WebResource v_WebResource = null; 107 | synchronized ( BaseAppMessage.class ) 108 | { 109 | v_WebResource = $WebResources.get(i_URL); 110 | if ( v_WebResource == null ) 111 | { 112 | v_WebResource = $Client.resource(i_URL); 113 | $WebResources.put(i_URL ,v_WebResource); 114 | } 115 | } 116 | 117 | ClientResponse v_Response = v_WebResource.post(ClientResponse.class ,i_Data); 118 | 119 | v_Result = v_Response.getEntity(String.class); 120 | v_Result = URLDecoder.decode(v_Result ,i_DataECode); 121 | } 122 | catch (Exception exce) 123 | { 124 | exce.printStackTrace(); 125 | } 126 | 127 | return v_Result; 128 | } 129 | 130 | } 131 | 132 | 133 | 134 | public static void main(String [] args) 135 | { 136 | // 注册普通单表 137 | BaseAppMessage.restRequest("http://IP:Port/LogWeb/services/log/register" ,"Json报文。请参见testScript/restful/Log.Register.A001.注册系统.01.普通单表.xml中的Json字符串" ,"UTF-8"); 138 | 139 | // 记录日志 140 | BaseAppMessage.restRequest("http://IP:Port/LogWeb/services/log/log" ,"Json报文。请参见testScript/restful/Log.Create.A001.记录日志.001.xml中的Json字符串" ,"UTF-8"); 141 | } 142 | ``` 143 | 144 | 145 | 146 | ===== 147 | #### VB客户端调用演示代码 148 | https://github.com/HY-ZhengWei/VB-Rest-Json 149 | 150 | 151 | 152 | --- 153 | #### 本项目引用Jar包,其源码链接如下 154 | 引用 https://github.com/HY-ZhengWei/hy.common.base 类库 155 | 156 | 引用 https://github.com/HY-ZhengWei/hy.common.berkeley 类库 157 | 158 | 引用 https://github.com/HY-ZhengWei/hy.common.db 类库 159 | 160 | 引用 https://github.com/HY-ZhengWei/hy.common.file 类库 161 | 162 | 引用 https://github.com/HY-ZhengWei/hy.common.mail 类库 163 | 164 | 引用 https://github.com/HY-ZhengWei/hy.common.net 类库 165 | 166 | 引用 https://github.com/HY-ZhengWei/hy.common.redis 类库 167 | 168 | 引用 https://github.com/HY-ZhengWei/hy.common.tpool 类库 169 | 170 | 引用 https://github.com/HY-ZhengWei/XJava 类库 171 | -------------------------------------------------------------------------------- /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.2.0 2 | Created-By: 2014-09 (HY.ZhengWei@qq.com ,WangZhanBin) 3 | Specification-Version: 1.2.0 2018-08-21 4 | SourceCode: https://github.com/HY-ZhengWei/LogWeb 5 | -------------------------------------------------------------------------------- /WebContent/META-INF/xfire/services.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TestService 5 | http://www.hy.com/TestService 6 | org.hy.log.appInterfaces.ITestService 7 | org.hy.log.appInterfaces.webservice.TestServiceImpl 8 | 9 | 10 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/api/api.AppInterfaces.Error.Log.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | cn 19 | 20 | 21 | 130101A001 22 | 记录日志:消息体为空或消息体格式异常 23 | 24 | 25 | 26 | 130101A011 27 | 记录日志:[系统编号]不可为空 28 | 29 | 30 | 31 | 130101A021 32 | 记录日志:[系统编号]超过最大长度:15 33 | 34 | 35 | 36 | 130101A031 37 | 记录日志:[系统编号]不能包含汉字 38 | 39 | 40 | 41 | 130101A041 42 | 记录日志:[系统编号]只能由英文、数字(0~9)和下划线组成 43 | 44 | 45 | 46 | 130101A051 47 | 记录日志:没有任何数据被用于记录,为什么要调用我啊? 48 | 49 | 50 | 51 | 130101A061 52 | 记录日志:[日志操作时间]小于当前时间减去10小时的范围。时间容错范围为:10小时 53 | 54 | 55 | 56 | 130101A071 57 | 记录日志:[日志操作时间]大于当前时间加上10小时的范围。时间容错范围为:10小时 58 | 59 | 60 | 61 | 130101A081 62 | 记录日志:未知异常错误 63 | 64 | 65 | 66 | 130101B011 67 | 记录日志:操作数据库异常 68 | 69 | 70 | 71 | 130101C011 72 | 记录日志:操作日志文件异常 73 | 74 | 75 | 76 | 77 | 78 | 79 | 130102A001 80 | 注册日志:消息体为空或消息体格式异常 81 | 82 | 83 | 84 | 130102A011 85 | 注册日志:[系统编号]不可为空 86 | 87 | 88 | 89 | 130102A021 90 | 注册日志:[系统编号]超过最大长度:15 91 | 92 | 93 | 94 | 130102A031 95 | 注册日志:[系统编号]不能包含汉字 96 | 97 | 98 | 99 | 130102A041 100 | 注册日志:[系统编号]只能由英文、数字(0~9)和下划线组成 101 | 102 | 103 | 104 | 130102A051 105 | 注册日志:[注册类型]为空或格式范围异常 106 | 107 | 108 | 109 | 130102B011 110 | 注册日志:注册时访问或操作数据库异常 111 | 112 | 113 | 114 | 130102B021 115 | 注册日志:更改注册类型时,新老注册类型一样无须修改 116 | 117 | 118 | 119 | 130102B031 120 | 注册日志:更改注册类型时,访问或操作数据库异常 121 | 122 | 123 | 124 | 130102B041 125 | 注册日志:创建日志表时操作数据库异常 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | en 135 | 136 | 137 | 138 | 139 | 140 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/api/api.AppInterfaces.Error.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 23 | 24 | 25 | 26 | 27 | cn 28 | 29 | 30 | 1300000000 31 | 日志系统:请检查您的消息头及消息体是否正确。并且请确认您有访问权限。 32 | 33 | 34 | 35 | 1300000010 36 | 日志系统:请检查您消息头中的[接口版本]是否正确。并且请确认您有访问权限。 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | en 46 | 47 | 48 | 1300000000 49 | Log system: Please check the message header and message body you are correct. And make sure you have permission to access. 50 | 51 | 52 | 53 | 1300000010 54 | Log system: Please check the [interface version] of your message header is correct. And make sure you have permission to access. 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/api/api.AppRestfuls.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | AppMessageBodyProvider 18 | org.hy.common.xml.plugins.AppMessageBodyProvider 19 | Provider 20 | 21 | 22 | 23 | test/hello 24 | org.hy.log.appInterfaces.restful.TestServiceImpl 25 | 用于开发测试的服务 26 | 27 | 28 | 29 | Log.Create.A001 30 | log/log 31 | org.hy.log.appInterfaces.restful.LogServiceImpl 32 | org.hy.log.msg.MsgLogInfoRequest 33 | java.lang.String 34 | 130101 35 | 记录日志接口 36 | POST 37 | 1.0 38 | 39 | 40 | 41 | Log.Register.A001 42 | log/register 43 | org.hy.log.appInterfaces.restful.LogServiceImpl 44 | org.hy.log.msg.MsgLogRegisterRequest 45 | java.lang.String 46 | 130102 47 | 注册系统接口 48 | POST 49 | 1.0 50 | 51 | 52 | 53 | Log.Server.A001 54 | server/info 55 | org.hy.log.appInterfaces.restful.ServerServiceImpl 56 | 查看服务信息及判断服务是否存活 57 | GET 58 | 1.0 59 | 60 | 61 | 62 | Log.Server.A002 63 | server/showError 64 | org.hy.log.appInterfaces.restful.ServerServiceImpl 65 | 查看服务所有的接口错误列表 66 | GET 67 | 1.0 68 | 69 | 70 | 71 | Log.Server.A003 72 | server/showInterface 73 | org.hy.log.appInterfaces.restful.ServerServiceImpl 74 | 查看服务提供的接口列表 75 | GET 76 | 1.0 77 | 78 | 79 | 80 | Log.Server.A004 81 | server/initDB 82 | org.hy.log.appInterfaces.restful.ServerServiceImpl 83 | 初始化数据库对象 84 | GET 85 | 1.0 86 | 87 | 88 | 89 | Log.Server.A005 90 | server/showInterfaceParam 91 | org.hy.log.appInterfaces.restful.ServerServiceImpl 92 | 获取接口的输入参数信息 93 | GET 94 | 1.0 95 | 96 | 97 | 98 | Log.Server.A006 99 | server/showInterfaceReturn 100 | org.hy.log.appInterfaces.restful.ServerServiceImpl 101 | 获取接口的返回输出参数信息 102 | GET 103 | 1.0 104 | 105 | 106 | 107 | Log.Server.A007 108 | server/showTotal 109 | org.hy.log.appInterfaces.restful.ServerServiceImpl 110 | 获取接口访问量的概要统计信息 111 | GET 112 | 1.0 113 | 114 | 115 | 116 | Log.Server.A008 117 | server/showTotalDB 118 | org.hy.log.appInterfaces.restful.ServerServiceImpl 119 | 获取数据库访问量的概要统计信息 120 | GET 121 | 1.0 122 | 123 | 124 | 125 | Log.Server.A009 126 | server/showErrorLog 127 | org.hy.log.appInterfaces.restful.ServerServiceImpl 128 | 接口访问的错误日志 129 | GET 130 | 1.0 131 | 132 | 133 | 134 | 135 | 136 | 137 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/cloud.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | ClusterServers 18 | 19 | 127.0.0.1:1921 20 | 21 | 全部集群服务器列表(用逗号分隔) 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/db/db.Berkeley.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | true 17 | false 18 | false 19 | 104857600 20 | 21 | 22 | 23 | 24 | true 25 | true 26 | 27 | 28 | 29 | 30 | 31 | 32 | webhome:../../LogWeb_bdb 33 | LogWeb 34 | true 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/db/db.InitDB.v1.0.mysql.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE TLog 2 | ( 3 | id VARCHAR(64) NOT NULL 4 | ,sysID VARCHAR(16) NOT NULL 5 | ,logID VARCHAR(64) 6 | ,logType VARCHAR(1000) 7 | ,logClass VARCHAR(1000) 8 | ,logContent TEXT 9 | ,logInfo TEXT 10 | ,operatorNo VARCHAR(64) 11 | ,operationType VARCHAR(64) 12 | ,operationRemark VARCHAR(1000) 13 | ,operationTime DATETIME NOT NULL 14 | ,waitTime INT(10) NOT NULL 15 | ); 16 | 17 | 18 | ALTER TABLE TLog ADD PRIMARY KEY (id); 19 | 20 | ALTER TABLE TLog ADD INDEX (sysID ,logID); 21 | 22 | ALTER TABLE TLog ADD INDEX (operationTime); 23 | 24 | 25 | 26 | 27 | 28 | CREATE TABLE TLogRegister 29 | ( 30 | sysID VARCHAR(16) NOT NULL 31 | ,registerType VARCHAR(16) NOT NULL 32 | ,dbBuildTime DATETIME 33 | ,createTime DATETIME NOT NULL 34 | ,updateTime DATETIME 35 | ); 36 | 37 | 38 | ALTER TABLE TLogRegister ADD PRIMARY KEY (sysID); 39 | 40 | 41 | 42 | 43 | 44 | CREATE TABLE TMessageKey 45 | ( 46 | sysid VARCHAR(32) NOT NULL 47 | ,sid VARCHAR(32) 48 | ,msgKey VARCHAR(64) NOT NULL 49 | ); 50 | 51 | 52 | 53 | 54 | 55 | CREATE TABLE TMailTime 56 | ( 57 | ID INT(10) NOT NULL AUTO_INCREMENT 58 | ,Title VARCHAR(320) NOT NULL 59 | ,Content VARCHAR(4000) NOT NULL 60 | ,Reciver VARCHAR(320) NOT NULL 61 | ,SendTime DATETIME NOT NULL 62 | ,PRIMARY KEY(ID) 63 | ); 64 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/db/db.InitDB.v1.0.sqlserver.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE TLog 2 | ( 3 | id VARCHAR(64) NOT NULL 4 | ,sysID VARCHAR(16) NOT NULL 5 | ,logID VARCHAR(64) 6 | ,logType VARCHAR(1000) 7 | ,logClass VARCHAR(1000) 8 | ,logContent TEXT 9 | ,logInfo TEXT 10 | ,operatorNo VARCHAR(64) 11 | ,operationType VARCHAR(64) 12 | ,operationRemark VARCHAR(1000) 13 | ,operationTime DATETIME NOT NULL 14 | ,waitTime INT NOT NULL 15 | ); 16 | 17 | 18 | ALTER TABLE TLog ADD PRIMARY KEY (id); 19 | 20 | CREATE NONCLUSTERED INDEX IX_TLog_SysID_LogID ON TLog (sysID ,logID); 21 | 22 | CREATE NONCLUSTERED INDEX IX_TLog_OperationTime ON TLog (operationTime); 23 | 24 | 25 | 26 | 27 | 28 | CREATE TABLE TLogRegister 29 | ( 30 | sysID VARCHAR(16) NOT NULL 31 | ,registerType VARCHAR(16) NOT NULL 32 | ,dbBuildTime DATETIME 33 | ,createTime DATETIME NOT NULL 34 | ,updateTime DATETIME 35 | ); 36 | 37 | 38 | ALTER TABLE TLogRegister ADD PRIMARY KEY (sysID); 39 | 40 | 41 | 42 | 43 | 44 | CREATE TABLE TMessageKey 45 | ( 46 | sysid VARCHAR(32) NOT NULL 47 | ,sid VARCHAR(32) 48 | ,msgKey VARCHAR(64) NOT NULL 49 | ); 50 | 51 | 52 | 53 | 54 | 55 | CREATE TABLE TMailTime 56 | ( 57 | ID INT NOT NULL PRIMARY KEY IDENTITY(1 ,1) 58 | ,Title VARCHAR(320) NOT NULL 59 | ,Content VARCHAR(4000) NOT NULL 60 | ,Reciver VARCHAR(320) NOT NULL 61 | ,SendTime DATETIME NOT NULL 62 | ); 63 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/db/db.MailTime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 30 | 31 | 32 | 33 | 42 | 43 | 44 | 45 | java.util.HashMap 46 | put(colName ,colValue) 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | MailTimeDAO 79 | sendMail 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/db/db.Server.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 38 | 39 | 40 | 41 | 46 | 47 | 48 | 49 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | java.util.Hashtable
68 | put(row.tableName ,row) 69 | org.hy.log.model.DBTableInfo 70 | setter(colValue) 71 |
72 | 73 |
74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 88 | 89 | 90 | 91 | 96 | 97 | 98 | 99 | 105 | 106 | 107 | 108 | 114 | 115 | 116 | 117 | org.hy.log.model.DBTableInfo 118 | setter(colValue) 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 141 | 142 | 143 | 144 | org.hy.common.TablePartitionRID
145 | putRow(row.sysid ,row.sid ,row.msgKey) 146 | org.hy.log.model.MessageKey 147 | setter(colValue) 148 |
149 | 150 |
151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 168 | 169 | 170 | 171 | java.util.HashMap
172 | put(row.sysid ,row.msgKey) 173 | org.hy.log.model.MessageKey 174 | setter(colValue) 175 |
176 | 177 |
178 | 179 |
180 | 181 |
-------------------------------------------------------------------------------- /WebContent/WEB-INF/ftl/Hello.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

${param01}${param02}

9 | 10 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/job.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | JOB_TaskCreateTable 16 | 注册者的:创建日志表任务 17 | 18 | 19 19 | 2014-01-01 00:00:00 20 | LogRegisterDAO 21 | taskCreateTable 22 | 23 | 24 | 25 | 26 | JOB_CacheMessageKeySSID 27 | 缓存消息密钥(接口级) 28 | 29 | 1 30 | 2016-01-01 01:01:00 31 | MessageKeyDAO 32 | cacheMessageKeySSID 33 | 34 | true 35 | 36 | 37 | 38 | 39 | JOB_CacheMessageKeySysID 40 | 缓存消息密钥(系统级) 41 | 42 | 1 43 | 2016-01-01 01:02:00 44 | MessageKeyDAO 45 | cacheMessageKeySysID 46 | 47 | true 48 | 49 | 50 | 51 | 52 | JOB_MailTime_Scan 53 | 邮件服务 54 | 55 | 1 56 | 2016-01-01 00:00:00 57 | MailTimeDAO 58 | scanMails 59 | true 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/activation-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/activation-1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/activemq-core-5.10.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/activemq-core-5.10.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/ant-1.6.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/ant-1.6.5.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/antlr-2.7.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/antlr-2.7.7.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aopalliance-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/aopalliance-1.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aopalliance-repackaged-2.3.0-b05.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/aopalliance-repackaged-2.3.0-b05.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/archaius-core-0.7.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/archaius-core-0.7.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/asm-1.0-RC3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/asm-1.0-RC3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/asm-3.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/asm-3.3.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aspectjrt-1.6.12.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/aspectjrt-1.6.12.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aspectjweaver-1.7.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/aspectjweaver-1.7.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/bonecp-0.8.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/bonecp-0.8.0-rc1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/bonecp-spring-0.8.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/bonecp-spring-0.8.0-rc1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/c3p0-0.9.2-pre5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/c3p0-0.9.2-pre5.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/cal10n-api-0.7.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/cal10n-api-0.7.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/cglib-2.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/cglib-2.2.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-beanutils-1.8.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-beanutils-1.8.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-collections-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-collections-3.2.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-configuration-1.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-configuration-1.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-dbcp-1.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-dbcp-1.2.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-io-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-io-2.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-lang-2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-lang-2.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-pool-1.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-pool-1.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-pool2-2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/commons-pool2-2.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/dbunit-2.4.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/dbunit-2.4.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/dom4j-1.6.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/dom4j-1.6.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/dozer-5.3.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/dozer-5.3.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/fel.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/fel.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/freemarker-2.3.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/freemarker-2.3.19.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/grizzly-framework-2.3.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/grizzly-framework-2.3.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/grizzly-http-2.3.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/grizzly-http-2.3.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/grizzly-http-server-2.3.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/grizzly-http-server-2.3.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/grizzly-http-servlet-2.3.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/grizzly-http-servlet-2.3.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/gson-2.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/gson-2.2.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/guava-13.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/guava-13.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/guava-19.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/guava-19.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/guice-4.1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/guice-4.1.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/guice-assistedinject-4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/guice-assistedinject-4.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/guice-grapher-4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/guice-grapher-4.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/guice-multibindings-4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/guice-multibindings-4.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hamcrest-core-1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hamcrest-core-1.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hessian-3.1.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hessian-3.1.5.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hibernate-commons-annotations-4.0.1.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hibernate-commons-annotations-4.0.1.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hibernate-core-4.1.8.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hibernate-core-4.1.8.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hibernate-validator-4.3.0.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hibernate-validator-4.3.0.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hk2-api-2.3.0-b05.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hk2-api-2.3.0-b05.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hk2-locator-2.3.0-b05.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hk2-locator-2.3.0-b05.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hk2-utils-2.3.0-b05.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hk2-utils-2.3.0-b05.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/httpclient-4.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/httpclient-4.3.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/httpcore-4.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/httpcore-4.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/httpmime-4.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/httpmime-4.3.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.base.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.base.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.berkeley.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.berkeley.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.db.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.db.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.file.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.file.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.mail.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.mail.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.net.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.net.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.redis.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.redis.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.report.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.report.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hy.common.tpool.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/hy.common.tpool.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-annotations-2.6.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jackson-annotations-2.6.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-core-2.6.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jackson-core-2.6.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-databind-2.6.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jackson-databind-2.6.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-dataformat-cbor-2.6.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jackson-dataformat-cbor-2.6.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-dataformat-xml-2.5.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jackson-dataformat-xml-2.5.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jackson-module-jaxb-annotations-2.5.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jackson-module-jaxb-annotations-2.5.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javassist-3.15.0-GA.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/javassist-3.15.0-GA.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.annotation-api-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/javax.annotation-api-1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.inject-2.3.0-b05.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/javax.inject-2.3.0-b05.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.mail.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/javax.mail.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.servlet-api-3.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/javax.servlet-api-3.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.ws.rs-api-2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/javax.ws.rs-api-2.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jboss-logging-3.1.0.GA.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jboss-logging-3.1.0.GA.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jboss-transaction-api_1.1_spec-1.0.0.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jboss-transaction-api_1.1_spec-1.0.0.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jcl-over-slf4j-1.6.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jcl-over-slf4j-1.6.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/je-6.4.25.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/je-6.4.25.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jedis-2.6.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jedis-2.6.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-apache-client4-1.19.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-apache-client4-1.19.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-client-1.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-client-1.17.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-client-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-client-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-common-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-common-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-container-grizzly2-http-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-container-grizzly2-http-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-container-grizzly2-servlet-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-container-grizzly2-servlet-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-container-servlet-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-container-servlet-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-container-servlet-core-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-container-servlet-core-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-core-1.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-core-1.17.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-guava-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-guava-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jersey-server-2.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jersey-server-2.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/json-smart-2.0-RC3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/json-smart-2.0-RC3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jtds-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/jtds-1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/junit-4.11.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/junit-4.11.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/log4j-1.2.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/log4j-1.2.17.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mail-1.4.6-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/mail-1.4.6-rc1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mchange-commons-java-0.2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/mchange-commons-java-0.2.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mysql-connector-java-5.1.30-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/mysql-connector-java-5.1.30-bin.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/noggit-0.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/noggit-0.5.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/ognl-2.6.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/ognl-2.6.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.osgi.core-5.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/org.osgi.core-5.0.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/osgi-resource-locator-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/osgi-resource-locator-1.0.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/poi-3.10-FINAL.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/poi-3.10-FINAL.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/poi-excelant-3.10-FINAL.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/poi-excelant-3.10-FINAL.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/poi-ooxml-3.10-FINAL.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/poi-ooxml-3.10-FINAL.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/poi-ooxml-schemas-3.10-FINAL.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/poi-ooxml-schemas-3.10-FINAL.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/quartz-2.1.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/quartz-2.1.7.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/servo-core-0.10.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/servo-core-0.10.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/servo-internal-0.10.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/servo-internal-0.10.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-api-1.7.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/slf4j-api-1.7.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-ext-1.7.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/slf4j-ext-1.7.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-jdk14-1.7.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/slf4j-jdk14-1.7.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-log4j12-1.7.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/solr-solrj-4.10.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/solr-solrj-4.10.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-aop-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-aop-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-asm-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-asm-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-beans-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-beans-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-context-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-context-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-context-support-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-context-support-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-core-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-core-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-data-commons-core-1.4.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-data-commons-core-1.4.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-data-jpa-1.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-data-jpa-1.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-data-redis-1.0.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-data-redis-1.0.2.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-expression-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-expression-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-jdbc-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-jdbc-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-jms-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-jms-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-mock-2.0.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-mock-2.0.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-orm-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-orm-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-remoting-2.0.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-remoting-2.0.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-tx-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-tx-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-web-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-web-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-webmvc-3.1.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/spring-webmvc-3.1.3.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/sqljdbc4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/sqljdbc4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/unitils-2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/unitils-2.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/validation-api-1.0.0.GA.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/validation-api-1.0.0.GA.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/wstx-asl-3.2.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/wstx-asl-3.2.7.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/xjava.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/xjava.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/xstream-1.4.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/xstream-1.4.9.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/zookeeper-3.4.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/WEB-INF/lib/zookeeper-3.4.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/startup.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | cloud.Config.xml 17 | 18 | 19 | 20 | sys.ServerConfig.xml 21 | 22 | 23 | 24 | sys.DB.Config.xml 25 | 26 | 27 | 28 | db/db.Berkeley.xml 29 | 30 | 31 | 32 | db/db.Server.xml 33 | 34 | 35 | 36 | db/db.Log.xml 37 | 38 | 39 | 40 | db/db.MailTime.xml 41 | 42 | 43 | 44 | 45 | 46 | sys.Version.xml 47 | 48 | 49 | 50 | 51 | api/ 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/sys.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | APPWEBID 18 | LogWeb 19 | 部署Web服务所在主机的标示(建议只包含:数字和英文) 20 | 21 | 22 | 23 | ClusterTimeout 24 | 30000 25 | 集群并发通讯的超时时长(单位:毫秒) 26 | 27 | 28 | 29 | SSOSessionTimeOut 30 | 60 31 | 单点登陆的会话超时时长(单位:秒) 32 | 33 | 34 | 35 | RootPackageName 36 | org.hy.log 37 | 顶级包的路径。用于初始化。一般不修改 38 | 39 | 40 | 41 | DataSourceType 42 | SQLSERVER 43 | 配置数据库是什么类型的。详见:org.hy.common.db.DataSourceGroup 44 | 45 | 46 | 47 | MsgPWD 48 | 49 | 与服务端间发消息的加密密码(暂时为空,不启用) 50 | 51 | 52 | 53 | SYS_LANGUAGE 54 | cn 55 | 统一设置国际化语言版本 56 | 57 | 58 | 59 | TPool_MaxThread 60 | 10 61 | 最大线程数 62 | 63 | 64 | 65 | TPool_MinThread 66 | 1 67 | 最小线程数 68 | 69 | 70 | 71 | TPool_MinIdleThread 72 | 1 73 | 最小空闲数 74 | 75 | 76 | 77 | TPool_IntervalTime 78 | 50 79 | 间隔时间 80 | 81 | 82 | 83 | TPool_IdleTimeKill 84 | 600 85 | 空闲自毁时长 86 | 87 | 88 | 89 | CacheType 90 | NULL 91 | 高性能缓存的类型。目前支持类型有:REDIS、NULL(不启用缓存) 92 | 93 | 94 | 95 | IsSynchronized 96 | false 97 | 性能类参数。当为false时,部分访问量大的接口启用异步访问机制 98 | 99 | 100 | 101 | IsSafeData 102 | true 103 | 104 | 数据安全及性能类参数。在IsSynchronized=false时才有效。 105 | 当为true时,牺牲部分性能保证日志数据的安全性,即使在数据库断连时,也确保日志数据能被记录下来而不丢失。 106 | 当为false时,性能损失将是最少的。 107 | 108 | 109 | 110 | 111 | IsTimeTaskServer 112 | true 113 | 是否为(启用)定时任务服务器 114 | 115 | 116 | 117 | Digit 118 | 3 119 | 四舍五入保留的小数位数 120 | 121 | 122 | 123 | AppInterfaceSysHead 124 | 125 | 139 | 140 | 系统级请求参数Json字符串样式 141 | 142 | 143 | 144 | AppInterfaceSysHeadReturn 145 | 146 | 162 | 163 | 系统级请求参数Json字符串样式(接口返回时用) 164 | 165 | 166 | 167 | ErrorLogCacheSize 168 | 100 169 | 记录错误信息的缓存大小 170 | 171 | 172 | 173 | 174 | 175 | 176 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/sys.DB.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | com.mysql.jdbc.Driver 19 | jdbc:mysql://127.0.0.1:3306/LogWeb?useUnicode=true&characterEncoding=utf-8 20 | root 21 | root 22 | 10 23 | 2 24 | 10000 25 | 26 | 27 | 28 | 29 | 30 | net.sourceforge.jtds.jdbc.Driver 31 | jdbc:jtds:sqlserver://10.1.50.94:1433;DatabaseName=LogWeb 32 | sa 33 | sa123456 34 | 100 35 | 2 36 | 10000 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/sys.ServerConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 1921 15 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/sys.Version.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 1.0 18 | 2014-12-12 19 | 20 | 统一日志服务的项目搭建 21 | 支持数据库记录日志。 22 | 支持普通日志记录。 23 | 支持注意类型的日志记录(包括年、月、日、旬、周、天、小时)。 24 | 25 | 1.0 26 | 27 | 28 | 29 | 30 | 1.1 31 | 2016-02-24 32 | 33 | 添加:容灾机制。可防止突然停电等原因,造成消息队列中正在等待入库的日志消息的丢失。 34 | 添加:消息的系统级鉴权功能。即,每个客户端系统拥有一个密钥,只有验证通过后才有权访问接口(所有的接口)。 35 | 添加:消息的接口级鉴权功能。即,每个客户端系统拥有多个密钥,每个接口一个密钥,只有验证通过后才有权访问对应的接口。 36 | 37 | 1.0 38 | 39 | 40 | 41 | 42 | 1.2 43 | 2017-01-17 44 | 45 | 添加:集群相关的一系列管理操作 46 | 添加:单点登陆的功能 47 | 48 | 1.0 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.goto.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Log Web System 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.initDB.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 日志系统-初始化数据库对象 6 | 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 | :Content 53 | 54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | 62 |
63 |
64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.initDBContent.html: -------------------------------------------------------------------------------- 1 |
2 |
:No
3 |
4 |
:Object
5 |
6 |
7 |
:Content
8 |
9 |
-------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.showError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 日志系统-错误列表 6 | 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 | :Content 53 | 54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | 62 |
63 |
64 | 65 | 66 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.showErrorContent.html: -------------------------------------------------------------------------------- 1 |
2 |
:No
3 |
:ErrorCode
4 |
5 |
:ErrorInfo
6 |
7 |
-------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.showErrorLogContent.html: -------------------------------------------------------------------------------- 1 |
2 |
:No
3 |
4 |
:Name
5 |
6 |
7 |
:ErrorCode
8 |
9 |
10 |
:ErrorInfo
11 |
12 |
13 |
:CreateTime
14 |
15 | 16 |
17 |
:SerialNo
18 |
19 |
20 | 24 |
查看
25 | 26 | 27 | 28 |
29 |
30 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.showInterfaceContent.html: -------------------------------------------------------------------------------- 1 |
2 |
:No
3 |
4 |
:Name
5 |
6 |
7 |
:Comment
8 |
9 |
:HttpMethod
10 |
:Version
11 |
12 |
:InnerNo
13 |
14 | 15 | 16 |
-------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.showInterfaceParam.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 日志系统-接口:IFType参数 6 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 45 | 46 | 47 | 48 | 49 | 50 | 51 |
52 |
53 |
54 | 55 | 56 | 57 | 58 | :InterfaceTitle 59 |
60 | 61 |
62 |
63 |
64 | 65 | 66 | 67 | 68 | 69 | 70 | 75 | 76 |
77 |
78 | 79 |
80 |
81 |
82 |
编号
83 |
错误编号
84 |
错误描述
85 |
86 | 87 |
88 | 89 |
90 | :ErrorContent 91 | 92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 | 100 |
101 |
102 | 117 | 118 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/template/template.showTotalContent.html: -------------------------------------------------------------------------------- 1 |
2 |
:No
3 |
4 |
:Name
5 |
6 |
7 |
:RequestCount
8 |
9 |
10 |
:SuccessCount
11 |
12 |
13 |
:FailCount
14 |
15 |
16 |
:SumTime
17 |
18 |
19 |
:AvgTime
20 |
21 |
-------------------------------------------------------------------------------- /WebContent/diff/difflib.js: -------------------------------------------------------------------------------- 1 | 2 | __whitespace={" ":true,"\t":true,"\n":true,"\f":true,"\r":true};difflib={defaultJunkFunction:function(c){return c in __whitespace;},stripLinebreaks:function(str){return str.replace(/^[\n\r]*|[\n\r]*$/g,"");},stringAsLines:function(str){var lfpos=str.indexOf("\n");var crpos=str.indexOf("\r");var linebreak=((lfpos>-1&&crpos>-1)||crpos<0)?"\n":"\r";var lines=str.split(linebreak);for(var i=0;ib[i])return 1;} 6 | return a.length==b.length?0:(a.length=200&&indices.length*100>n){populardict[elt]=1;delete b2j[elt];}else{indices.push(i);}}else{b2j[elt]=[i];}} 10 | for(var elt in populardict) 11 | delete b2j[elt];var isjunk=this.isjunk;var junkdict={};if(isjunk){for(var elt in populardict){if(isjunk(elt)){junkdict[elt]=1;delete populardict[elt];}} 12 | for(var elt in b2j){if(isjunk(elt)){junkdict[elt]=1;delete b2j[elt];}}} 13 | this.isbjunk=difflib.__isindict(junkdict);this.isbpopular=difflib.__isindict(populardict);} 14 | this.find_longest_match=function(alo,ahi,blo,bhi){var a=this.a;var b=this.b;var b2j=this.b2j;var isbjunk=this.isbjunk;var besti=alo;var bestj=blo;var bestsize=0;var j=null;var j2len={};var nothing=[];for(var i=alo;i=bhi)break;newj2len[j]=k=difflib.__dictget(j2len,j-1,0)+1;if(k>bestsize){besti=i-k+1;bestj=j-k+1;bestsize=k;}} 15 | j2len=newj2len;} 16 | while(besti>alo&&bestj>blo&&!isbjunk(b[bestj-1])&&a[besti-1]==b[bestj-1]){besti--;bestj--;bestsize++;} 17 | while(besti+bestsizealo&&bestj>blo&&isbjunk(b[bestj-1])&&a[besti-1]==b[bestj-1]){besti--;bestj--;bestsize++;} 19 | while(besti+bestsizenn){groups.push([tag,i1,Math.min(i2,i1+n),j1,Math.min(j2,j1+n)]);i1=Math.max(i1,i2-n);j1=Math.max(j1,j2-n);} 32 | groups.push([tag,i1,i2,j1,j2]);} 33 | if(groups&&groups[groups.length-1][0]=='equal')groups.pop();return groups;} 34 | this.ratio=function(){matches=difflib.__reduce(function(sum,triple){return sum+triple[triple.length-1];},this.get_matching_blocks(),0);return difflib.__calculate_ratio(matches,this.a.length+this.b.length);} 35 | this.quick_ratio=function(){var fullbcount,elt;if(this.fullbcount==null){this.fullbcount=fullbcount={};for(var i=0;i0)matches++;} 38 | return difflib.__calculate_ratio(matches,this.a.length+this.b.length);} 39 | this.real_quick_ratio=function(){var la=this.a.length;var lb=this.b.length;return _calculate_ratio(Math.min(la,lb),la+lb);} 40 | this.isjunk=isjunk?isjunk:difflib.defaultJunkFunction;this.a=this.b=null;this.set_seqs(a,b);}} -------------------------------------------------------------------------------- /WebContent/diff/diffview.css: -------------------------------------------------------------------------------- 1 | table.diff { 2 | border-collapse:collapse; 3 | border:1px solid darkgray 4 | } 5 | table.diff tbody { 6 | font-family:Courier, monospace 7 | } 8 | table.diff tbody th { 9 | font-family:verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif; 10 | background:#EED; 11 | font-size:11px; 12 | font-weight:normal; 13 | border:1px solid #BBC; 14 | color:#886; 15 | padding:.3em .5em .1em 2em; 16 | text-align:right; 17 | vertical-align:top 18 | } 19 | table.diff thead { 20 | border-bottom:1px solid #BBC; 21 | background:#EFEFEF; 22 | font-family:Verdana 23 | } 24 | table.diff thead th.texttitle { 25 | text-align:left 26 | } 27 | table.diff tbody td { 28 | padding:0px .4em; 29 | padding-top:.4em; 30 | vertical-align:top; 31 | } 32 | table.diff .empty { 33 | background-color:#DDD; 34 | } 35 | table.diff .replace { 36 | background-color:#FD8 37 | } 38 | table.diff .delete { 39 | background-color:#E99; 40 | } 41 | table.diff .skip { 42 | background-color:#EFEFEF; 43 | border:1px solid #AAA; 44 | border-right:1px solid #BBC; 45 | } 46 | table.diff .insert { 47 | background-color:#9E9 48 | } 49 | table.diff th.author { 50 | text-align:right; 51 | border-top:1px solid #BBC; 52 | background:#EFEFEF 53 | } -------------------------------------------------------------------------------- /WebContent/diff/diffview.js: -------------------------------------------------------------------------------- 1 | 2 | diffview={buildView:function(params){var baseTextLines=params.baseTextLines;var newTextLines=params.newTextLines;var opcodes=params.opcodes;var baseTextName=params.baseTextName?params.baseTextName:"Base Text";var newTextName=params.newTextName?params.newTextName:"New Text";var contextSize=params.contextSize;var inline=(params.viewType==0||params.viewType==1)?params.viewType:0;if(baseTextLines==null)throw"Cannot build diff view; baseTextLines is not defined.";if(newTextLines==null)throw"Cannot build diff view; newTextLines is not defined.";if(!opcodes)throw"Canno build diff view; opcodes is not defined.";function celt(name,clazz){var e=document.createElement(name);e.className=clazz;return e;}function telt(name,text){var e=document.createElement(name);e.appendChild(document.createTextNode(text));return e;}function ctelt(name,clazz,text){var e=document.createElement(name);e.className=clazz;e.appendChild(document.createTextNode(text));return e;}var tdata=document.createElement("thead");var node=document.createElement("tr");tdata.appendChild(node);if(inline){node.appendChild(document.createElement("th"));node.appendChild(document.createElement("th"));node.appendChild(ctelt("th","texttitle",baseTextName+" vs. "+newTextName));}else{node.appendChild(document.createElement("th"));node.appendChild(ctelt("th","texttitle",baseTextName));node.appendChild(document.createElement("th"));node.appendChild(ctelt("th","texttitle",newTextName));}tdata=[tdata];var rows=[];var node2;function addCells(row,tidx,tend,textLines,change){if(tidx1&&((idx>0&&i==contextSize)||(idx==0&&i==0))&&change=="equal"){var jump=rowcnt-((idx==0?1:2)*contextSize);if(jump>1){toprows.push(node=document.createElement("tr"));b+=jump;n+=jump;i+=jump-1;node.appendChild(telt("th","..."));if(!inline)node.appendChild(ctelt("td","skip",""));node.appendChild(telt("th","..."));node.appendChild(ctelt("td","skip",""));if(idx+1==opcodes.length){break;}else{continue;}}}toprows.push(node=document.createElement("tr"));if(inline){if(change=="insert"){addCellsInline(node,null,n++,newTextLines,change);}else if(change=="replace"){botrows.push(node2=document.createElement("tr"));if(b 2 | 3 | 4 | Log Web System 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WebContent/jquery/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright jQuery Foundation and other contributors, https://jquery.org/ 2 | 3 | This software consists of voluntary contributions made by many 4 | individuals. For exact contribution history, see the revision history 5 | available at https://github.com/jquery/jquery-ui 6 | 7 | The following license applies to all parts of this software except as 8 | documented below: 9 | 10 | ==== 11 | 12 | Permission is hereby granted, free of charge, to any person obtaining 13 | a copy of this software and associated documentation files (the 14 | "Software"), to deal in the Software without restriction, including 15 | without limitation the rights to use, copy, modify, merge, publish, 16 | distribute, sublicense, and/or sell copies of the Software, and to 17 | permit persons to whom the Software is furnished to do so, subject to 18 | the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be 21 | included in all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 27 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 28 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 29 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30 | 31 | ==== 32 | 33 | Copyright and related rights for sample code are waived via CC0. Sample 34 | code is defined as all source code contained within the demos directory. 35 | 36 | CC0: http://creativecommons.org/publicdomain/zero/1.0/ 37 | 38 | ==== 39 | 40 | All files located in the node_modules and external directories are 41 | externally maintained libraries used by this software which have their 42 | own licenses; we recommend you read them, as their terms may differ from 43 | the terms above. 44 | -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-bg_glass_75_d0e5f5_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-bg_glass_75_d0e5f5_1x400.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-bg_glass_85_dfeffc_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-bg_glass_85_dfeffc_1x400.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-bg_inset-hard_100_f5f8f9_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-bg_inset-hard_100_f5f8f9_1x100.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-bg_inset-hard_100_fcfdfd_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-bg_inset-hard_100_fcfdfd_1x100.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-icons_217bc0_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-icons_217bc0_256x240.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-icons_469bdd_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-icons_469bdd_256x240.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-icons_6da8d5_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-icons_6da8d5_256x240.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-icons_d8e7f3_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-icons_d8e7f3_256x240.png -------------------------------------------------------------------------------- /WebContent/jquery/images/ui-icons_f9bd01_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jquery/images/ui-icons_f9bd01_256x240.png -------------------------------------------------------------------------------- /WebContent/jquery/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-ui", 3 | "title": "jQuery UI", 4 | "description": "A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.", 5 | "version": "1.12.1", 6 | "homepage": "http://jqueryui.com", 7 | "author": { 8 | "name": "jQuery Foundation and other contributors", 9 | "url": "https://github.com/jquery/jquery-ui/blob/1.12.1/AUTHORS.txt" 10 | }, 11 | "main": "ui/widget.js", 12 | "maintainers": [ 13 | { 14 | "name": "Scott González", 15 | "email": "scott.gonzalez@gmail.com", 16 | "url": "http://scottgonzalez.com" 17 | }, 18 | { 19 | "name": "Jörn Zaefferer", 20 | "email": "joern.zaefferer@gmail.com", 21 | "url": "http://bassistance.de" 22 | }, 23 | { 24 | "name": "Mike Sherov", 25 | "email": "mike.sherov@gmail.com", 26 | "url": "http://mike.sherov.com" 27 | }, 28 | { 29 | "name": "TJ VanToll", 30 | "email": "tj.vantoll@gmail.com", 31 | "url": "http://tjvantoll.com" 32 | }, 33 | { 34 | "name": "Felix Nagel", 35 | "email": "info@felixnagel.com", 36 | "url": "http://www.felixnagel.com" 37 | }, 38 | { 39 | "name": "Alex Schmitz", 40 | "email": "arschmitz@gmail.com", 41 | "url": "https://github.com/arschmitz" 42 | } 43 | ], 44 | "repository": { 45 | "type": "git", 46 | "url": "git://github.com/jquery/jquery-ui.git" 47 | }, 48 | "bugs": "https://bugs.jqueryui.com/", 49 | "license": "MIT", 50 | "scripts": { 51 | "test": "grunt" 52 | }, 53 | "dependencies": {}, 54 | "devDependencies": { 55 | "commitplease": "2.3.0", 56 | "grunt": "0.4.5", 57 | "grunt-bowercopy": "1.2.4", 58 | "grunt-cli": "0.1.13", 59 | "grunt-compare-size": "0.4.0", 60 | "grunt-contrib-concat": "0.5.1", 61 | "grunt-contrib-csslint": "0.5.0", 62 | "grunt-contrib-jshint": "0.12.0", 63 | "grunt-contrib-qunit": "1.0.1", 64 | "grunt-contrib-requirejs": "0.4.4", 65 | "grunt-contrib-uglify": "0.11.1", 66 | "grunt-git-authors": "3.1.0", 67 | "grunt-html": "6.0.0", 68 | "grunt-jscs": "2.1.0", 69 | "load-grunt-tasks": "3.4.0", 70 | "rimraf": "2.5.1", 71 | "testswarm": "1.1.0" 72 | }, 73 | "keywords": [] 74 | } 75 | -------------------------------------------------------------------------------- /WebContent/jsoneditor-3.1.2/app-min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jsoneditor-3.1.2/app-min.css -------------------------------------------------------------------------------- /WebContent/jsoneditor-3.1.2/asset/ace/theme-jsoneditor.js: -------------------------------------------------------------------------------- 1 | /* ***** BEGIN LICENSE BLOCK ***** 2 | * Distributed under the BSD license: 3 | * 4 | * Copyright (c) 2010, Ajax.org B.V. 5 | * All rights reserved. 6 | * 7 | * Redistribution and use in source and binary forms, with or without 8 | * modification, are permitted provided that the following conditions are met: 9 | * * Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * * Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * * Neither the name of Ajax.org B.V. nor the 15 | * names of its contributors may be used to endorse or promote products 16 | * derived from this software without specific prior written permission. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY 22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | * ***** END LICENSE BLOCK ***** */ 30 | 31 | define('ace/theme/jsoneditor', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) { 32 | 33 | exports.isDark = false; 34 | exports.cssClass = "ace-jsoneditor"; 35 | exports.cssText = ".ace-jsoneditor .ace_gutter {\ 36 | background: #ebebeb;\ 37 | color: #333\ 38 | }\ 39 | \ 40 | .ace-jsoneditor.ace_editor {\ 41 | font-family: droid sans mono, monospace, courier new, courier, sans-serif;\ 42 | line-height: 1.3;\ 43 | }\ 44 | .ace-jsoneditor .ace_print-margin {\ 45 | width: 1px;\ 46 | background: #e8e8e8\ 47 | }\ 48 | .ace-jsoneditor .ace_scroller {\ 49 | background-color: #FFFFFF\ 50 | }\ 51 | .ace-jsoneditor .ace_text-layer {\ 52 | color: gray\ 53 | }\ 54 | .ace-jsoneditor .ace_variable {\ 55 | color: #1a1a1a\ 56 | }\ 57 | .ace-jsoneditor .ace_cursor {\ 58 | border-left: 2px solid #000000\ 59 | }\ 60 | .ace-jsoneditor .ace_overwrite-cursors .ace_cursor {\ 61 | border-left: 0px;\ 62 | border-bottom: 1px solid #000000\ 63 | }\ 64 | .ace-jsoneditor .ace_marker-layer .ace_selection {\ 65 | background: #D5DDF6\ 66 | }\ 67 | .ace-jsoneditor.ace_multiselect .ace_selection.ace_start {\ 68 | box-shadow: 0 0 3px 0px #FFFFFF;\ 69 | border-radius: 2px\ 70 | }\ 71 | .ace-jsoneditor .ace_marker-layer .ace_step {\ 72 | background: rgb(255, 255, 0)\ 73 | }\ 74 | .ace-jsoneditor .ace_marker-layer .ace_bracket {\ 75 | margin: -1px 0 0 -1px;\ 76 | border: 1px solid #BFBFBF\ 77 | }\ 78 | .ace-jsoneditor .ace_marker-layer .ace_active-line {\ 79 | background: #FFFBD1\ 80 | }\ 81 | .ace-jsoneditor .ace_gutter-active-line {\ 82 | background-color : #dcdcdc\ 83 | }\ 84 | .ace-jsoneditor .ace_marker-layer .ace_selected-word {\ 85 | border: 1px solid #D5DDF6\ 86 | }\ 87 | .ace-jsoneditor .ace_invisible {\ 88 | color: #BFBFBF\ 89 | }\ 90 | .ace-jsoneditor .ace_keyword,\ 91 | .ace-jsoneditor .ace_meta,\ 92 | .ace-jsoneditor .ace_support.ace_constant.ace_property-value {\ 93 | color: #AF956F\ 94 | }\ 95 | .ace-jsoneditor .ace_keyword.ace_operator {\ 96 | color: #484848\ 97 | }\ 98 | .ace-jsoneditor .ace_keyword.ace_other.ace_unit {\ 99 | color: #96DC5F\ 100 | }\ 101 | .ace-jsoneditor .ace_constant.ace_language {\ 102 | color: darkorange\ 103 | }\ 104 | .ace-jsoneditor .ace_constant.ace_numeric {\ 105 | color: red\ 106 | }\ 107 | .ace-jsoneditor .ace_constant.ace_character.ace_entity {\ 108 | color: #BF78CC\ 109 | }\ 110 | .ace-jsoneditor .ace_invalid {\ 111 | color: #FFFFFF;\ 112 | background-color: #FF002A;\ 113 | }\ 114 | .ace-jsoneditor .ace_fold {\ 115 | background-color: #AF956F;\ 116 | border-color: #000000\ 117 | }\ 118 | .ace-jsoneditor .ace_storage,\ 119 | .ace-jsoneditor .ace_support.ace_class,\ 120 | .ace-jsoneditor .ace_support.ace_function,\ 121 | .ace-jsoneditor .ace_support.ace_other,\ 122 | .ace-jsoneditor .ace_support.ace_type {\ 123 | color: #C52727\ 124 | }\ 125 | .ace-jsoneditor .ace_string {\ 126 | color: green\ 127 | }\ 128 | .ace-jsoneditor .ace_comment {\ 129 | color: #BCC8BA\ 130 | }\ 131 | .ace-jsoneditor .ace_entity.ace_name.ace_tag,\ 132 | .ace-jsoneditor .ace_entity.ace_other.ace_attribute-name {\ 133 | color: #606060\ 134 | }\ 135 | .ace-jsoneditor .ace_markup.ace_underline {\ 136 | text-decoration: underline\ 137 | }\ 138 | .ace-jsoneditor .ace_indent-guide {\ 139 | background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y\ 140 | }"; 141 | 142 | var dom = require("../lib/dom"); 143 | dom.importCssString(exports.cssText, exports.cssClass); 144 | }); 145 | -------------------------------------------------------------------------------- /WebContent/jsoneditor-3.1.2/asset/ace/theme-textmate.js: -------------------------------------------------------------------------------- 1 | define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;border-radius: 2px;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}) -------------------------------------------------------------------------------- /WebContent/jsoneditor-3.1.2/img/jsoneditor-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HY-Org/LogWeb/26c586f7375231e09c37270a943b0bcee70c605a/WebContent/jsoneditor-3.1.2/img/jsoneditor-icons.png -------------------------------------------------------------------------------- /WebContent/message.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | Comet Weather 9 | 10 | 61 | 62 | 63 | 64 | 65 | 66 |
67 | 68 | 69 | 70 |
71 | 72 | 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /conf/properties/development/application.properties: -------------------------------------------------------------------------------- 1 | BasePath=/LogWeb/ 2 | -------------------------------------------------------------------------------- /conf/properties/development/log4j.properties: -------------------------------------------------------------------------------- 1 | #debug < info < warn < error 2 | log4j.rootLogger=info, Console, LogWeb 3 | 4 | ####################################### 5 | #note the runtime log to RunLog. 6 | log4j.logger.LogWeb=DEBUG,LogWeb,console 7 | 8 | #console--print the log on the screen. 9 | log4j.appender.console=org.apache.log4j.ConsoleAppender 10 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.console.layout.ConversionPattern=%d [%t] [%-5p] %x %C - %m%n 12 | 13 | #RunFile--note RunLog'file--(path:${user.dir}=program root path),one log one day.------------------------- 14 | log4j.appender.LogWeb=org.apache.log4j.DailyRollingFileAppender 15 | log4j.appender.LogWeb.file=${catalina.home}/logs/LogWeb.log 16 | log4j.appender.LogWeb.DatePattern='.'yyyy-MM-dd 17 | log4j.appender.LogWeb.layout=org.apache.log4j.PatternLayout 18 | log4j.appender.LogWeb.layout.ConversionPattern=%d{HH:mm:ss.SSS} [%t] [%-5p] %C %m%n 19 | 20 | 21 | ################################ 22 | 23 | #Console 24 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 25 | log4j.appender.Console.Target = System.out 26 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 27 | log4j.appender.Console.layout.ConversionPattern=%-5d [%-4p] [%r] [%t] [%l] - %m%n 28 | 29 | 30 | log4j.logger.org.springframework=info -------------------------------------------------------------------------------- /conf/properties/production/application.properties: -------------------------------------------------------------------------------- 1 | BasePath=/LogWeb/ 2 | -------------------------------------------------------------------------------- /conf/properties/production/log4j.properties: -------------------------------------------------------------------------------- 1 | #debug < info < warn < error 2 | log4j.rootLogger=info, Console, LogWeb 3 | 4 | ####################################### 5 | #note the runtime log to RunLog. 6 | log4j.logger.LogWeb=DEBUG,LogWeb,console 7 | 8 | #console--print the log on the screen. 9 | log4j.appender.console=org.apache.log4j.ConsoleAppender 10 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.console.layout.ConversionPattern=%d [%t] [%-5p] %x %C - %m%n 12 | 13 | #RunFile--note RunLog'file--(path:${user.dir}=program root path),one log one day.------------------------- 14 | log4j.appender.LogWeb=org.apache.log4j.DailyRollingFileAppender 15 | log4j.appender.LogWeb.file=${catalina.home}/logs/LogWeb.log 16 | log4j.appender.LogWeb.DatePattern='.'yyyy-MM-dd 17 | log4j.appender.LogWeb.layout=org.apache.log4j.PatternLayout 18 | log4j.appender.LogWeb.layout.ConversionPattern=%d{HH:mm:ss.SSS} [%t] [%-5p] %C %m%n 19 | 20 | 21 | ################################ 22 | 23 | #Console 24 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 25 | log4j.appender.Console.Target = System.out 26 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 27 | log4j.appender.Console.layout.ConversionPattern=%-5d [%-4p] [%r] [%t] [%l] - %m%n 28 | 29 | 30 | log4j.logger.org.springframework=info -------------------------------------------------------------------------------- /conf/properties/testing/application.properties: -------------------------------------------------------------------------------- 1 | BasePath=/LogWeb/ 2 | -------------------------------------------------------------------------------- /conf/properties/testing/log4j.properties: -------------------------------------------------------------------------------- 1 | #debug < info < warn < error 2 | log4j.rootLogger=info, Console, LogWeb 3 | 4 | ####################################### 5 | #note the runtime log to RunLog. 6 | log4j.logger.LogWeb=DEBUG,LogWeb,console 7 | 8 | #console--print the log on the screen. 9 | log4j.appender.console=org.apache.log4j.ConsoleAppender 10 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.console.layout.ConversionPattern=%d [%t] [%-5p] %x %C - %m%n 12 | 13 | #RunFile--note RunLog'file--(path:${user.dir}=program root path),one log one day.------------------------- 14 | log4j.appender.LogWeb=org.apache.log4j.DailyRollingFileAppender 15 | log4j.appender.LogWeb.file=${catalina.home}/logs/LogWeb.log 16 | log4j.appender.LogWeb.DatePattern='.'yyyy-MM-dd 17 | log4j.appender.LogWeb.layout=org.apache.log4j.PatternLayout 18 | log4j.appender.LogWeb.layout.ConversionPattern=%d{HH:mm:ss.SSS} [%t] [%-5p] %C %m%n 19 | 20 | 21 | ################################ 22 | 23 | #Console 24 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 25 | log4j.appender.Console.Target = System.out 26 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 27 | log4j.appender.Console.layout.ConversionPattern=%-5d [%-4p] [%r] [%t] [%l] - %m%n 28 | 29 | 30 | log4j.logger.org.springframework=info -------------------------------------------------------------------------------- /conf/xml/spring/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | classpath*:properties/development/*.properties 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | zh_CN 45 | UTF-8 46 | true,false 47 | yyyy-MM-dd HH:mm:ss 48 | yyyy-MM-dd 49 | HH:mm:ss 50 | 0.###### 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /conf/xml/spring/dispatcher-servlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | text/html;charset=UTF-8 30 | 31 | 32 | 33 | 34 | 35 | 36 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 63 | 64 | 65 | text/plain;charset=UTF-8 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 85 | 86 | 87 | 88 | classpath:/message 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | /error.html 99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | # ZhengWei(HY) Create 2016-02-24 2 | 3 | # Required metadata 4 | sonar.projectKey=LogWeb 5 | sonar.projectName=LogWeb 6 | sonar.projectVersion=1.1.0 7 | sonar.sourceEncoding=UTF-8 8 | sonar.modules=java-module,xml-module,test-module 9 | 10 | # Java module 11 | java-module.sonar.projectName=Java Module 12 | java-module.sonar.language=java 13 | java-module.sonar.sources=src 14 | java-module.sonar.projectBaseDir=. 15 | sonar.binaries=WebContent 16 | 17 | # Xml module 18 | xml-module.sonar.projectName=Xml Module 19 | xml-module.sonar.language=xml 20 | xml-module.sonar.sources=WebContent/WEB-INF 21 | xml-module.sonar.projectBaseDir=. 22 | 23 | # Test module 24 | test-module.sonar.projectName=Test Module 25 | test-module.sonar.language=java 26 | test-module.sonar.sources=test 27 | test-module.sonar.projectBaseDir=. 28 | -------------------------------------------------------------------------------- /src/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.2.0 2 | Created-By: 2014-09 (HY.ZhengWei@qq.com ,WangZhanBin) 3 | Specification-Version: 1.2.0 2018-08-21 4 | SourceCode: https://github.com/HY-ZhengWei/LogWeb 5 | -------------------------------------------------------------------------------- /src/org/hy/log/appInterfaces/ILogService.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.appInterfaces; 2 | 3 | import org.hy.log.msg.MsgLogInfoRequest; 4 | import org.hy.log.msg.MsgLogRegisterRequest; 5 | import org.hy.common.xml.plugins.AppMessage; 6 | 7 | 8 | 9 | 10 | 11 | /** 12 | * 日志信息的接口 13 | * 14 | * 接口服务端: 我方 15 | * 接口客户端: 通用 16 | * 接口协议为: 通用 17 | * 对方联调人: - 18 | * 相关文档有: - 19 | * 20 | * @author ZhengWei(HY) 21 | * @createDate 2014-12-12 22 | * @version v1.0 23 | */ 24 | public interface ILogService 25 | { 26 | 27 | /** 28 | * 记录日志 29 | * 30 | * 接口编号:Log.Create.A001 31 | * 32 | * @author ZhengWei(HY) 33 | * @createDate 2014-12-12 34 | * @version v1.0 35 | * 36 | * @param i_AppMsg 37 | * @return 38 | */ 39 | public AppMessage log(AppMessage i_AppMsg); 40 | 41 | 42 | 43 | /** 44 | * 1. 注册者的注册动作 45 | * 2. 注册者的变动注册配置的动作 46 | * 47 | * 接口编号:Log.Register.A001 48 | * 49 | * @author ZhengWei(HY) 50 | * @createDate 2014-12-14 51 | * @version v1.0 52 | * 53 | * @param i_AppMsg 54 | * @return 55 | */ 56 | public AppMessage register(AppMessage i_AppMsg); 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/org/hy/log/appInterfaces/IServerService.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.appInterfaces; 2 | 3 | 4 | 5 | 6 | 7 | /** 8 | * 服务运行信息的接口 9 | * 10 | * 接口服务端: 我方 11 | * 接口客户端: 通用 12 | * 接口协议为: 通用 13 | * 对方联调人: - 14 | * 相关文档有: - 15 | * 16 | * @author ZhengWei(HY)、WangZhanBin 17 | * @createDate 2014-11-14 18 | * @version v1.0 19 | */ 20 | public interface IServerService 21 | { 22 | 23 | /** 24 | * 查看服务信息及判断服务是否存活 25 | * 26 | * 接口的编号: Order.Server.A001 27 | * 28 | * @author ZhengWei(HY) 29 | * @createDate 2014-11-14 30 | * @version v1.0 31 | * 32 | * @return 33 | */ 34 | public String info(); 35 | 36 | 37 | 38 | /** 39 | * 查看服务的接口错误列表 40 | * 41 | * 接口的编号: Order.Server.A002 42 | * 43 | * @author ZhengWei(HY) 44 | * @createDate 2014-11-19 45 | * @version v1.0 46 | * 47 | * @return 48 | */ 49 | public String showError(); 50 | 51 | 52 | 53 | /** 54 | * 查看服务提供的接口列表 55 | * 56 | * 接口的编号: Order.Server.A003 57 | * 58 | * @author ZhengWei(HY) 59 | * @createDate 2014-11-19 60 | * @version v1.0 61 | * 62 | * @return 63 | */ 64 | public String showInterface(); 65 | 66 | 67 | 68 | /** 69 | * 初始化数据库对象 70 | * 71 | * 接口的编号: Order.Server.A004 72 | * 73 | * 这应当是个安全的接口。只有探测到表不存在时,才会创建表。 74 | * 由脚本编写者来保证没有Drop、Delete、Update语句,只应有Create、Insert语句 75 | * 76 | * @author ZhengWei(HY) 77 | * @createDate 2014-11-28 78 | * @version v1.0 79 | * 80 | * @return 81 | */ 82 | public String initDB(); 83 | 84 | 85 | 86 | /** 87 | * 获取接口的输入参数信息 88 | * 89 | * 接口的编号: Order.Server.A005 90 | * 91 | * @author ZhengWei(HY) 92 | * @createDate 2014-12-01 93 | * @version v1.0 94 | * 95 | * @param i_InterfaceNo 接口对外的访问编号 96 | * @return 97 | */ 98 | public String showInterfaceParam(String i_InterfaceNo); 99 | 100 | 101 | 102 | /** 103 | * 获取接口的返回输出参数信息 104 | * 105 | * 接口的编号: Order.Server.A006 106 | * 107 | * @author ZhengWei(HY) 108 | * @createDate 2014-12-24 109 | * @version v1.0 110 | * 111 | * @param i_InterfaceNo 接口对外的访问编号 112 | * @return 113 | */ 114 | public String showInterfaceReturn(String i_InterfaceNo); 115 | 116 | 117 | 118 | /** 119 | * 获取接口访问量的概要统计数据 120 | * 121 | * 接口的编号: Order.Server.A007 122 | * 123 | * @author ZhengWei(HY) 124 | * @createDate 2014-12-04 125 | * @version v1.0 126 | * 127 | * @return 128 | */ 129 | public String showTotal(); 130 | 131 | 132 | 133 | /** 134 | * 获取数据库访问量的概要统计数据 135 | * 136 | * 接口的编号: Order.Server.A008 137 | * 138 | * @author ZhengWei(HY) 139 | * @createDate 2014-12-04 140 | * @version v1.0 141 | * 142 | * @return 143 | */ 144 | public String showTotalDB(); 145 | 146 | 147 | 148 | /** 149 | * 获取错误日志 150 | * 151 | * 接口的编号: Order.Server.A009 152 | * 153 | * @author ZhengWei(HY) 154 | * @createDate 2014-12-08 155 | * @version v1.0 156 | * 157 | * @param i_InterfaceNo 接口对外的访问编号 158 | * @return 159 | */ 160 | public String showErrorLog(String i_InterfaceNo); 161 | 162 | } 163 | -------------------------------------------------------------------------------- /src/org/hy/log/appInterfaces/ITestService.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.appInterfaces; 2 | 3 | 4 | 5 | 6 | 7 | /** 8 | * 测试服务 9 | * 10 | * 接口服务端: 我方 11 | * 接口客户端: 通用 12 | * 接口协议为: 通用 13 | * 对方联调人: - 14 | * 相关文档有: - 15 | * 16 | * @author ZhengWei(HY) 17 | * @createDate 2014-09-12 18 | * @version v1.0 19 | */ 20 | public interface ITestService 21 | { 22 | 23 | /** 24 | * 测试服务 25 | * 26 | * 接口的编号: Order.Test.A001 27 | */ 28 | public String TestService(String i_MsgInfo); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/org/hy/log/appInterfaces/InterfaceInfo.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.appInterfaces; 2 | 3 | import org.hy.common.xml.plugins.AppInterfaceInfo; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 接口信息 11 | * 12 | * @author ZhengWei(HY) 13 | * @createDate 2014-11-19 14 | * @version v1.0 15 | */ 16 | public class InterfaceInfo extends AppInterfaceInfo 17 | { 18 | 19 | private static final long serialVersionUID = 883769689537471799L; 20 | 21 | 22 | 23 | public InterfaceInfo() 24 | { 25 | super(); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/org/hy/log/appInterfaces/restful/TestServiceImpl.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.appInterfaces.restful; 2 | 3 | import javax.ws.rs.POST; 4 | import javax.ws.rs.Path; 5 | import javax.ws.rs.Produces; 6 | 7 | import org.hy.log.common.BaseAppMessage; 8 | import org.hy.log.appInterfaces.ITestService; 9 | import org.hy.common.Date; 10 | 11 | 12 | 13 | 14 | 15 | /** 16 | * 测试服务 17 | * 18 | * 接口服务端: 我方 19 | * 接口客户端: 通用 20 | * 接口协议为: Restful 21 | * 对方联调人: - 22 | * 相关文档有: - 23 | * 24 | * @author ZhengWei(HY) 25 | * @createDate 2014-09-23 26 | * @version v1.0 27 | */ 28 | @Path("test") 29 | public class TestServiceImpl extends BaseAppMessage implements ITestService 30 | { 31 | 32 | /** 33 | * 测试服务 34 | * 35 | * 接口的编号: Order.Test.A001 36 | */ 37 | @Path("hello") 38 | @POST 39 | @Produces("text/plain") 40 | public String TestService(String i_MsgInfo) 41 | { 42 | return Date.getNowTime().getFull() + " : Hello World! " + i_MsgInfo; 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /src/org/hy/log/appInterfaces/webservice/TestServiceImpl.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.appInterfaces.webservice; 2 | 3 | import org.hy.log.appInterfaces.ITestService; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 测试服务 11 | * 12 | * 接口服务端: 我方 13 | * 接口客户端: 通用 14 | * 接口协议为: WebService 15 | * 对方联调人: - 16 | * 相关文档有: - 17 | * 18 | * @author ZhengWei(HY) 19 | * @createDate 2014-09-12 20 | * @version v1.0 21 | */ 22 | public class TestServiceImpl implements ITestService 23 | { 24 | 25 | /** 26 | * 测试服务 27 | * 28 | * 接口的编号: Order.Test.A0001 29 | */ 30 | @Override 31 | public String TestService(String i_MsgInfo) 32 | { 33 | return "HY"; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/org/hy/log/common/ApplicationRestfuls.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import javax.ws.rs.ApplicationPath; 4 | import javax.ws.rs.core.Application; 5 | 6 | import org.hy.common.Help; 7 | import org.hy.common.app.Param; 8 | import org.hy.common.xml.XJava; 9 | 10 | import java.util.HashSet; 11 | import java.util.Map; 12 | import java.util.Set; 13 | 14 | 15 | 16 | 17 | 18 | /** 19 | * Restful接口注册服务类 20 | * 21 | * @author ZhengWei(HY) 22 | * @createDate 2014-09-23 23 | * @version v1.0 24 | */ 25 | @ApplicationPath("/") 26 | public class ApplicationRestfuls extends Application 27 | { 28 | 29 | @SuppressWarnings("unchecked") 30 | @Override 31 | public Set> getClasses() 32 | { 33 | final Set> v_Classes = new HashSet>(); 34 | Map v_AppRestfuls = (Map)XJava.getObject("AppRestfuls"); 35 | 36 | for (Param v_Param : v_AppRestfuls.values()) 37 | { 38 | try 39 | { 40 | v_Classes.add(Help.forName(v_Param.getValue())); 41 | } 42 | catch (Exception exce) 43 | { 44 | exce.printStackTrace(); 45 | throw new VerifyError("-- 接口注册异常:" + v_Param.getName() + " : " + v_Param.getValue()); 46 | } 47 | } 48 | 49 | return v_Classes; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/org/hy/log/common/BaseDAO.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import java.util.Random; 4 | import java.util.UUID; 5 | 6 | import org.hy.common.Date; 7 | import org.hy.common.StringHelp; 8 | 9 | 10 | 11 | 12 | 13 | /** 14 | * 数据库操作层--基类 15 | * 16 | * @author ZhengWei(HY) 17 | * @createDate 2014-09-23 18 | * @version v1.0 19 | */ 20 | public class BaseDAO extends Base 21 | { 22 | public static final Date $MaxDate = new Date("2100-01-01 00:00:00"); 23 | 24 | public static final Date $MinDate = new Date("2000-01-01 00:00:00"); 25 | 26 | private static final int $RandomMax = 999999; 27 | 28 | private static final int $RandomLen = ("" + $RandomMax).length(); 29 | 30 | 31 | 32 | protected String makeID() 33 | { 34 | return UUID.randomUUID().toString().replace("-" ,"").toUpperCase(); 35 | } 36 | 37 | 38 | 39 | /** 40 | * 生成主键(按时间顺序) 41 | * 42 | * @return 43 | */ 44 | protected synchronized String makeID_Time() 45 | { 46 | return this.makeID_Time(""); 47 | } 48 | 49 | 50 | 51 | /** 52 | * 生成主键(按时间顺序) 53 | * 54 | * @return 55 | */ 56 | protected synchronized String makeID_Time(String i_OrderBy) 57 | { 58 | Date v_Date = Date.getNowTime(); 59 | Random v_Random = new Random(); 60 | 61 | return v_Date.getFullMilli_ID() + i_OrderBy + StringHelp.lpad(v_Random.nextInt($RandomMax) ,$RandomLen ,"0"); 62 | } 63 | 64 | 65 | 66 | /** 67 | * 生成主键(按时间倒序) 68 | * 69 | * @return 70 | */ 71 | protected synchronized String makeID_ReverseTime() 72 | { 73 | return this.makeID_ReverseTime(""); 74 | } 75 | 76 | 77 | 78 | /** 79 | * 生成主键(按时间倒序) 80 | * 81 | * @return 82 | */ 83 | protected synchronized String makeID_ReverseTime(String i_OrderBy) 84 | { 85 | Date v_Date = Date.getNowTime(); 86 | Random v_Random = new Random(); 87 | 88 | v_Date = new Date($MaxDate.getTime() - v_Date.getTime() + $MinDate.getTime()); 89 | 90 | return v_Date.getFullMilli_ID() + i_OrderBy + StringHelp.lpad(v_Random.nextInt($RandomMax) ,$RandomLen ,"0"); 91 | } 92 | 93 | } 94 | -------------------------------------------------------------------------------- /src/org/hy/log/common/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import java.util.Map; 4 | 5 | import org.hy.common.Date; 6 | import org.hy.common.Help; 7 | import org.hy.common.xml.SerializableDef; 8 | 9 | 10 | 11 | 12 | 13 | /** 14 | * 基础实体类,可序列化的类 15 | * 16 | * @author ZhengWei(HY) 17 | * @createDate 2014-11-20 18 | * @version v1.0 19 | */ 20 | public class BaseEntity extends SerializableDef 21 | { 22 | 23 | private static final long serialVersionUID = 1406383050091755803L; 24 | 25 | 26 | /** 时间戳 */ 27 | private Long t; 28 | 29 | 30 | 31 | /** 32 | * 用序列化的另一个类初始化'我自己'。 33 | * 34 | * 主要用于父类无法强转为子类的情况 35 | * 36 | * @author WangZhanBin 37 | * @createDate 2014-11-20 38 | * @version v1.0 39 | * 40 | * @param i_SerialObj 41 | */ 42 | public void init(SerializableDef i_SerialObj) 43 | { 44 | super.init(i_SerialObj); 45 | } 46 | 47 | 48 | 49 | /** 50 | * 用Map集合初始化'我自己'。 51 | * 52 | * @author WangZhanBin 53 | * @createDate 2014-11-20 54 | * @version v1.0 55 | * 56 | * @param i_Datas 57 | */ 58 | public void init(Map i_Datas) 59 | { 60 | super.init(i_Datas); 61 | } 62 | 63 | 64 | 65 | /** 66 | * 限制性截取字符串 67 | * 68 | * @author ZhengWei(HY) 69 | * @createDate 2014-12-13 70 | * @version v1.0 71 | * 72 | * @param i_Text 73 | * @param i_MaxLen 限制最大长度 74 | * @return 75 | */ 76 | protected String checkMaxLen(String i_Text ,int i_MaxLen) 77 | { 78 | if ( i_Text.length() > i_MaxLen ) 79 | { 80 | return i_Text.substring(0 ,i_MaxLen); 81 | } 82 | else 83 | { 84 | return i_Text; 85 | } 86 | } 87 | 88 | 89 | 90 | public Long getT() 91 | { 92 | this.t = Help.NVL(this.t ,(new Date()).getTime()); 93 | return this.t; 94 | } 95 | 96 | 97 | 98 | public void setT(Long t) 99 | { 100 | this.t = t; 101 | } 102 | 103 | } 104 | -------------------------------------------------------------------------------- /src/org/hy/log/common/BaseEnum.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | 4 | 5 | 6 | 7 | /** 8 | * 基础枚举类 9 | * 10 | * @author ZhengWei(HY) 11 | * @createDate 2014-11-05 12 | * @version v1.0 13 | */ 14 | public interface BaseEnum 15 | { 16 | 17 | public O getValue(); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/org/hy/log/common/BaseJunit.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import org.hy.common.Help; 4 | import org.hy.log.common.InitConfig; 5 | 6 | 7 | 8 | 9 | 10 | 11 | /** 12 | * 基础测试类 13 | * 14 | * @author ZhengWei(HY) 15 | * @createDate 2014-09-23 16 | * @version v1.0 17 | */ 18 | public class BaseJunit extends Base 19 | { 20 | private static boolean $IsInit = false; 21 | 22 | 23 | 24 | public BaseJunit() 25 | { 26 | synchronized ( this ) 27 | { 28 | if ( !$IsInit ) 29 | { 30 | $IsInit = true; 31 | new InitConfig(Help.getWebClassPath() + "../../WebContent/WEB-INF/"); 32 | } 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/org/hy/log/common/BaseModel.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import org.hy.common.MethodReflect; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 基础数据模型类 11 | * 12 | * @author ZhengWei(HY) 13 | * @createDate 2014-09-23 14 | * @version v1.0 15 | */ 16 | public abstract class BaseModel extends BaseEntity implements Comparable 17 | { 18 | 19 | private static final long serialVersionUID = -3598457321671729930L; 20 | 21 | 22 | 23 | /** 24 | * 获取比较、对比、相等操作的数值 25 | */ 26 | public String getCompareValue() 27 | { 28 | return this.getRowKey(); 29 | } 30 | 31 | 32 | 33 | public int compareTo(BaseModel i_Other) 34 | { 35 | if ( i_Other == null ) 36 | { 37 | return 1; 38 | } 39 | else if ( this == i_Other ) 40 | { 41 | return 0; 42 | } 43 | else 44 | { 45 | if ( i_Other.getCompareValue() == null ) 46 | { 47 | return 1; 48 | } 49 | else if ( this.getCompareValue() == null ) 50 | { 51 | return -1; 52 | } 53 | else 54 | { 55 | return this.getCompareValue().compareTo(i_Other.getCompareValue()); 56 | } 57 | } 58 | } 59 | 60 | 61 | 62 | @Override 63 | public int hashCode() 64 | { 65 | if ( this.getCompareValue() == null ) 66 | { 67 | return -1; 68 | } 69 | else 70 | { 71 | return this.getCompareValue().hashCode(); 72 | } 73 | } 74 | 75 | 76 | 77 | @Override 78 | public boolean equals(Object i_Other) 79 | { 80 | if ( i_Other == null ) 81 | { 82 | return false; 83 | } 84 | else if ( this == i_Other ) 85 | { 86 | return true; 87 | } 88 | else if ( this.getClass().equals(i_Other.getClass()) 89 | || MethodReflect.isExtendImplement(i_Other ,BaseModel.class) ) 90 | { 91 | BaseModel v_Other = (BaseModel)i_Other; 92 | if ( v_Other.getCompareValue() == null ) 93 | { 94 | return false; 95 | } 96 | else if ( this.getCompareValue() == null ) 97 | { 98 | return false; 99 | } 100 | else 101 | { 102 | return this.getCompareValue().equals(v_Other.getCompareValue()); 103 | } 104 | } 105 | else if ( i_Other.getClass().equals(String.class) ) 106 | { 107 | return i_Other.toString().equals(this.getRowKey()); 108 | } 109 | else 110 | { 111 | return false; 112 | } 113 | } 114 | 115 | 116 | 117 | /** 118 | * 获取行主键 119 | */ 120 | public abstract String getRowKey(); 121 | 122 | 123 | } 124 | -------------------------------------------------------------------------------- /src/org/hy/log/common/BaseMsg.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | 4 | 5 | 6 | 7 | /** 8 | * 基础消息类 9 | * 10 | * @author ZhengWei(HY) 11 | * @createDate 2014-09-24 12 | * @version v1.0 13 | */ 14 | public class BaseMsg extends BaseEntity 15 | { 16 | 17 | private static final long serialVersionUID = -2120939775214676355L; 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/org/hy/log/common/BaseService.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | 4 | 5 | 6 | 7 | /** 8 | * 基础服务类 9 | * 10 | * @author ZhengWei(HY) 11 | * @createDate 2014-10-22 12 | * @version v1.0 13 | */ 14 | public class BaseService extends Base 15 | { 16 | 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/org/hy/log/common/CustomWebBindingInitializer.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import java.sql.Timestamp; 4 | import java.text.DateFormat; 5 | import java.text.SimpleDateFormat; 6 | 7 | import org.springframework.web.bind.WebDataBinder; 8 | import org.springframework.web.bind.support.WebBindingInitializer; 9 | import org.springframework.web.context.request.WebRequest; 10 | 11 | 12 | 13 | 14 | 15 | public class CustomWebBindingInitializer implements WebBindingInitializer 16 | { 17 | 18 | private static final DateFormat DATEFORMAT = new SimpleDateFormat("yyyy-MM-dd"); 19 | 20 | private static final DateFormat TIMEFORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 21 | 22 | 23 | 24 | @Override 25 | public void initBinder(WebDataBinder binder, WebRequest request) 26 | { 27 | binder.registerCustomEditor(java.util.Date.class, new DateEditor(DATEFORMAT, true)); 28 | binder.registerCustomEditor(Timestamp.class, new DateEditor(TIMEFORMAT, true)); 29 | 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/org/hy/log/common/DateEditor.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import java.beans.PropertyEditorSupport; 4 | import java.text.DateFormat; 5 | import java.text.ParseException; 6 | import java.text.SimpleDateFormat; 7 | import java.util.Date; 8 | 9 | import org.springframework.util.StringUtils; 10 | 11 | 12 | 13 | 14 | 15 | public class DateEditor extends PropertyEditorSupport 16 | { 17 | 18 | 19 | private static DateFormat TIMEFORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 20 | 21 | private DateFormat dateFormat; 22 | 23 | private boolean allowEmpty = true; 24 | 25 | 26 | 27 | public DateEditor() 28 | { 29 | } 30 | 31 | 32 | 33 | public DateEditor(DateFormat dateFormat) 34 | { 35 | this.dateFormat = dateFormat; 36 | } 37 | 38 | 39 | 40 | public DateEditor(DateFormat dateFormat ,boolean allowEmpty) 41 | { 42 | this.dateFormat = dateFormat; 43 | this.allowEmpty = allowEmpty; 44 | } 45 | 46 | 47 | 48 | /** 49 | * Parse the Date from the given text, using the specified DateFormat. 50 | */ 51 | @Override 52 | public void setAsText(String text) throws IllegalArgumentException 53 | { 54 | if ( this.allowEmpty && !StringUtils.hasText(text) ) 55 | { 56 | // Treat empty String as null value. 57 | setValue(null); 58 | } 59 | else 60 | { 61 | try 62 | { 63 | if ( this.dateFormat != null ) 64 | setValue(this.dateFormat.parse(text)); 65 | else 66 | { 67 | if ( text.contains(":") ) 68 | setValue(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(text)); 69 | else 70 | setValue(new SimpleDateFormat("yyyy-MM-dd").parse(text)); 71 | } 72 | } 73 | catch (ParseException ex) 74 | { 75 | throw new IllegalArgumentException("Could not parse date: " + ex.getMessage() ,ex); 76 | } 77 | } 78 | } 79 | 80 | 81 | 82 | /** 83 | * Format the Date as String, using the specified DateFormat. 84 | */ 85 | @Override 86 | public String getAsText() 87 | { 88 | Date value = (Date) getValue(); 89 | DateFormat dateFormat = this.dateFormat; 90 | if ( dateFormat == null ) 91 | dateFormat = TIMEFORMAT; 92 | return (value != null ? dateFormat.format(value) : ""); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /src/org/hy/log/common/InitConfig.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import org.hy.log.msg.MsgErrorResponse; 7 | import org.hy.log.service.impl.LogInfoService; 8 | import org.hy.common.Help; 9 | import org.hy.common.I18N; 10 | import org.hy.common.PartitionMap; 11 | import org.hy.common.StringHelp; 12 | import org.hy.common.TablePartition; 13 | import org.hy.common.app.Param; 14 | import org.hy.common.thread.ThreadPool; 15 | import org.hy.common.xml.XJava; 16 | import org.hy.common.xml.plugins.AppInitConfig; 17 | 18 | 19 | 20 | 21 | 22 | /** 23 | * Web初始化信息 24 | * 25 | * @author ZhengWei(HY) 26 | * @createDate 2014-09-12 27 | * @version v1.0 28 | */ 29 | public final class InitConfig extends AppInitConfig 30 | { 31 | 32 | private static boolean $Init = false; 33 | 34 | private String xmlRoot; 35 | 36 | 37 | 38 | public InitConfig() 39 | { 40 | this(Help.getWebINFPath()); 41 | } 42 | 43 | 44 | 45 | public InitConfig(String i_XmlRoot) 46 | { 47 | this.xmlRoot = i_XmlRoot; 48 | init(); 49 | } 50 | 51 | 52 | 53 | @SuppressWarnings("unchecked") 54 | private synchronized void init() 55 | { 56 | if ( !$Init ) 57 | { 58 | $Init = true; 59 | 60 | try 61 | { 62 | this.initW("sys.Config.xml" ,this.xmlRoot); 63 | this.initW("startup.Config.xml" ,this.xmlRoot); 64 | this.initW((List)XJava.getObject("StartupConfig") ,this.xmlRoot); 65 | this.initW(((Param)XJava.getObject("RootPackageName")).getValue()); 66 | init_TPool(); 67 | this.initW("job.Config.xml" ,this.xmlRoot); 68 | } 69 | catch (Exception exce) 70 | { 71 | System.out.println(exce.getMessage()); 72 | exce.printStackTrace(); 73 | } 74 | 75 | 76 | init_I18NError(); 77 | 78 | 79 | // 容灾机制:将本地缓存的所有日志消息全部入库。 80 | ((LogInfoService)XJava.getObject("LogInfoService")).executeLogs(); 81 | } 82 | } 83 | 84 | 85 | 86 | @SuppressWarnings("unchecked") 87 | private void init_I18NError() 88 | { 89 | Map v_AppErrors = (Map)XJava.getObject("AppInterfaces_Error"); 90 | PartitionMap v_Mappings = (PartitionMap) XJava.getObject("AppInterface_MappingError"); 91 | PartitionMap v_AppErrorsPart = new TablePartition(); 92 | int v_AppECount = v_AppErrors.size(); 93 | I18N v_I18NError = (I18N)XJava.getObject("I18N_Error"); 94 | List v_Params = v_I18NError.getITextInfos("cn"); 95 | int v_MappingLen = v_Mappings.keySet().iterator().next().length(); 96 | 97 | for (Param v_Param : v_Params) 98 | { 99 | MsgErrorResponse v_MsgError = new MsgErrorResponse(v_Param); 100 | String v_Prefix = v_MsgError.getErrorCode().substring(0 ,v_MappingLen); 101 | List v_Prefixs = v_Mappings.get(v_Prefix); 102 | 103 | if ( !Help.isNull(v_Prefixs) ) 104 | { 105 | for (Param v_Mapping : v_Prefixs) 106 | { 107 | v_AppErrorsPart.putRow(v_Mapping.getValue() ,v_MsgError); 108 | } 109 | } 110 | 111 | v_AppErrors.put(v_MsgError.getErrorCode() ,v_MsgError); 112 | } 113 | 114 | XJava.putObject("AppInterfaces_ErrorPart" ,v_AppErrorsPart); 115 | int v_LPad = ("" + v_AppErrors.size()).length(); 116 | System.out.println("Load App Interface Error:手工定义 " + StringHelp.lpad(v_AppECount ,v_LPad ," ") + " 个;\n" 117 | + "Load App Interface Error:自动加载 " + StringHelp.lpad((v_AppErrors.size() - v_AppECount) ,v_LPad ," ") + " 个;\n" 118 | + "Load App Interface Error:合计定义 " + StringHelp.lpad(v_AppErrors.size() ,v_LPad ," ") + " 个。"); 119 | } 120 | 121 | 122 | 123 | private void init_TPool() 124 | { 125 | ThreadPool.setMaxThread( this.getIntConfig("TPool_MaxThread")); 126 | ThreadPool.setMinThread( this.getIntConfig("TPool_MinThread")); 127 | ThreadPool.setMinIdleThread(this.getIntConfig("TPool_MinIdleThread")); 128 | ThreadPool.setIntervalTime( this.getIntConfig("TPool_IntervalTime")); 129 | ThreadPool.setIdleTimeKill( this.getIntConfig("TPool_IdleTimeKill")); 130 | } 131 | 132 | 133 | 134 | private int getIntConfig(String i_XJavaID) 135 | { 136 | return Integer.parseInt(XJava.getParam(i_XJavaID).getValue()); 137 | } 138 | 139 | } 140 | -------------------------------------------------------------------------------- /src/org/hy/log/dao/ILogInfoDAO.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.dao; 2 | 3 | import org.hy.log.model.LogInfo; 4 | import org.hy.common.Return; 5 | 6 | 7 | 8 | 9 | 10 | /** 11 | * 操作日志DAO接口 12 | * 13 | * @author ZhengWei 14 | * @createDate 2014-12-12 15 | * @version v1.0 16 | */ 17 | public interface ILogInfoDAO 18 | { 19 | 20 | /** 21 | * 非注册者的:业务操作日志添加 22 | * 23 | * @author ZhengWei(HY) 24 | * @createDate 2014-12-12 25 | * @version v1.0 26 | * 27 | * @param io_LogInfo 28 | * @return Return.paramStr 在成功时返回记录主键编号id的值 29 | * Return.paramObj 在异常时返回异常信息 30 | */ 31 | public Return addLogInfo(LogInfo io_LogInfo); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/org/hy/log/dao/ILogRegisterDAO.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.dao; 2 | 3 | import java.util.Map; 4 | 5 | import org.hy.log.model.LogInfo; 6 | import org.hy.log.model.LogRegister; 7 | import org.hy.common.Return; 8 | 9 | 10 | 11 | 12 | 13 | /** 14 | * 注册者操作日志DAO接口 15 | * 16 | * @author ZhengWei 17 | * @createDate 2014-12-14 18 | * @version v1.0 19 | */ 20 | public interface ILogRegisterDAO 21 | { 22 | 23 | /** 24 | * 注册者的:业务操作日志添加 25 | * 26 | * @author ZhengWei(HY) 27 | * @createDate 2014-12-14 28 | * @version v1.0 29 | * 30 | * @param io_LogInfo 31 | * @return Return.paramStr 在成功时返回记录主键编号id的值 32 | * Return.paramObj 在异常时返回异常信息 33 | */ 34 | public Return addLogInfo(LogInfo io_LogInfo); 35 | 36 | 37 | 38 | /** 39 | * 注册者的:创建日志表 40 | * 41 | * @author ZhengWei(HY) 42 | * @createDate 2014-12-13 43 | * @version v1.0 44 | * 45 | * @param i_TableName 46 | * @return Return.paramObj 在异常时返回异常信息 47 | * Return.paramInt 标记出是否有真正创建表。1:有创建表 0:表已存在无须创建 48 | */ 49 | public Return createTable(String i_TableName); 50 | 51 | 52 | 53 | /** 54 | * 注册者的:创建日志表任务 55 | * 56 | * @author ZhengWei(HY) 57 | * @createDate 2014-12-15 58 | * @version v1.0 59 | * 60 | */ 61 | public void taskCreateTable(); 62 | 63 | 64 | 65 | /** 66 | * 注册者的:注册配置信息 67 | * 68 | * @author ZhengWei(HY) 69 | * @createDate 2014-12-14 70 | * @version v1.0 71 | * 72 | * @param io_LogRegister 73 | * @return Return.paramObj 在异常时返回异常信息 74 | */ 75 | public Return addRegister(LogRegister io_LogRegister); 76 | 77 | 78 | 79 | /** 80 | * 注册者的:更新配置信息 81 | * 82 | * @author ZhengWei(HY) 83 | * @createDate 2014-12-14 84 | * @version v1.0 85 | * 86 | * @param io_LogRegister 87 | * @return Return.paramObj 在异常时返回异常信息 88 | */ 89 | public Return updateRegister(LogRegister io_LogRegister); 90 | 91 | 92 | 93 | /** 94 | * 注册者的:更新构建信息 95 | * 96 | * @author ZhengWei(HY) 97 | * @createDate 2014-12-14 98 | * @version v1.0 99 | * 100 | * @param io_LogRegister 101 | * @return Return.paramObj 在异常时返回异常信息 102 | */ 103 | public Return updateBuild(LogRegister io_LogRegister); 104 | 105 | 106 | 107 | /** 108 | * 注册者的:按系统编号,查询配置信息 109 | * 110 | * @author ZhengWei(HY) 111 | * @createDate 2014-12-14 112 | * @version v1.0 113 | * 114 | * @param i_SysID 115 | * @return 异常时返回空null 116 | */ 117 | public LogRegister queryRegister(String i_SysID); 118 | 119 | 120 | 121 | /** 122 | * 注册者的:按系统编号,查询配置信息 123 | * 124 | * @author ZhengWei(HY) 125 | * @createDate 2014-12-14 126 | * @version v1.0 127 | * 128 | * @param i_LogRegister 129 | * @return 异常时返回空null 130 | */ 131 | public LogRegister queryRegister(LogRegister i_LogRegister); 132 | 133 | 134 | 135 | /** 136 | * 注册者的:查询所有配置信息 137 | * 138 | * @author ZhengWei(HY) 139 | * @createDate 2014-12-14 140 | * @version v1.0 141 | * 142 | * @return 异常时返回空null 143 | */ 144 | public Map queryRegisters(); 145 | 146 | } 147 | -------------------------------------------------------------------------------- /src/org/hy/log/dao/IMessageKeyDAO.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.dao; 2 | 3 | import org.hy.common.xml.annotation.XType; 4 | import org.hy.common.xml.annotation.Xjava; 5 | import org.hy.common.xml.annotation.Xsql; 6 | 7 | 8 | 9 | 10 | 11 | /** 12 | * 消息密钥DAO接口 13 | * 14 | * @author ZhengWei(HY) 15 | * @createDate 2016-02-23 16 | * @version v1.0 17 | */ 18 | @Xjava(id="MessageKeyDAO" ,value=XType.XSQL) 19 | public interface IMessageKeyDAO 20 | { 21 | 22 | /** 23 | * 缓存消息密钥(接口级) 24 | * 25 | * @author ZhengWei(HY) 26 | * @createDate 2016-02-23 27 | * @version v1.0 28 | * 29 | */ 30 | @Xsql(id="XSQL_MessageKey_Query_SSID" ,updateCacheID="AppMsgKeySSID" ,log="更新消息密钥(接口级)") 31 | public void cacheMessageKeySSID(); 32 | 33 | 34 | 35 | /** 36 | * 缓存消息密钥(系统级) 37 | * 38 | * @author ZhengWei(HY) 39 | * @createDate 2017-12-19 40 | * @version v1.0 41 | * 42 | */ 43 | @Xsql(id="XSQL_MessageKey_Query_SysID" ,updateCacheID="AppMsgKeySysID" ,log="更新消息密钥(系统级)") 44 | public void cacheMessageKeySysID(); 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/org/hy/log/dao/IServerInfoDAO.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.dao; 2 | 3 | import java.util.Map; 4 | 5 | import org.hy.common.xml.annotation.XType; 6 | import org.hy.common.xml.annotation.Xjava; 7 | import org.hy.common.xml.annotation.Xparam; 8 | import org.hy.common.xml.annotation.Xsql; 9 | import org.hy.log.model.DBTableInfo; 10 | 11 | 12 | 13 | 14 | 15 | /** 16 | * 服务运行信息的DAO层接口 17 | * 18 | * @author ZhengWei(HY) 19 | * @createDate 2014-11-28 20 | * @version v1.0 21 | */ 22 | @Xjava(id="ServerInfoDAO" ,value=XType.XSQL) 23 | public interface IServerInfoDAO 24 | { 25 | 26 | /** 27 | * 执行SQL 28 | * 29 | * @author ZhengWei(HY) 30 | * @createDate 2014-11-28 31 | * @version v1.0 32 | * 33 | * @param i_SQL 34 | * @return 35 | */ 36 | @Xsql("XSQL_God") 37 | public boolean execute(String i_SQL); 38 | 39 | 40 | 41 | /** 42 | * 获取数据库中所有表的元数据信息 43 | * 44 | * @author ZhengWei(HY) 45 | * @createDate 2014-11-29 46 | * @version v1.0 47 | * 48 | * @return 49 | */ 50 | @Xsql("XSQL_DBTableInfo_Query") 51 | public Map getTables(); 52 | 53 | 54 | 55 | /** 56 | * 判断表对象是否存在 57 | * 58 | * @author ZhengWei(HY) 59 | * @createDate 2014-12-14 60 | * @version v1.0 61 | * 62 | * @param i_TableName 63 | * @return 64 | */ 65 | @Xsql(id="XSQL_DBTableInfo_QueryByName" ,returnOne=true) 66 | public DBTableInfo isExists(@Xparam("tableName") String i_TableName); 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/org/hy/log/dao/impl/LogInfoDAOImpl.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.dao.impl; 2 | 3 | import org.hy.log.common.BaseDAO; 4 | import org.hy.log.dao.ILogInfoDAO; 5 | import org.hy.log.model.LogInfo; 6 | import org.hy.common.Date; 7 | import org.hy.common.Help; 8 | import org.hy.common.Return; 9 | import org.hy.common.xml.annotation.Xjava; 10 | 11 | 12 | 13 | 14 | 15 | /** 16 | * 业务操作日志DAO 17 | * 18 | * @author ZhengWei(HY) 19 | * @createDate 2014-12-12 20 | * @version v1.0 21 | */ 22 | @Xjava(id="LogInfoDAO") 23 | public class LogInfoDAOImpl extends BaseDAO implements ILogInfoDAO 24 | { 25 | 26 | /** 27 | * 非注册者的:业务操作日志添加 28 | * 29 | * @author ZhengWei(HY) 30 | * @createDate 2014-12-12 31 | * @version v1.0 32 | * 33 | * @param io_LogInfo 34 | * @return Return.paramStr 在成功时返回记录主键编号id的值 35 | * Return.paramObj 在异常时返回异常信息 36 | */ 37 | @Override 38 | public Return addLogInfo(LogInfo io_LogInfo) 39 | { 40 | Return v_Ret = new Return(false); 41 | 42 | if ( io_LogInfo == null ) 43 | { 44 | return v_Ret; 45 | } 46 | 47 | io_LogInfo.setWaitTime((int)(Date.getNowTime().getTime() - io_LogInfo.getMsgRequestTime().getTime())); 48 | 49 | try 50 | { 51 | if ( Help.isNull(io_LogInfo.getId()) ) 52 | { 53 | v_Ret.paramStr = super.makeID(); 54 | io_LogInfo.setId(v_Ret.paramStr); 55 | } 56 | else 57 | { 58 | v_Ret.paramStr = io_LogInfo.getId(); 59 | } 60 | 61 | v_Ret.set(1 == this.getXSQL("XSQL_LogInfo_Add").executeUpdate(io_LogInfo)); 62 | } 63 | catch (Exception e) 64 | { 65 | v_Ret.paramObj = e.getMessage(); 66 | v_Ret.set(false); 67 | } 68 | 69 | return v_Ret; 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /src/org/hy/log/dao/impl/MailTimeDAO.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.dao.impl; 2 | 3 | import java.util.Map; 4 | 5 | import org.hy.common.Date; 6 | import org.hy.common.Help; 7 | import org.hy.common.mail.MailOwnerInfo; 8 | import org.hy.common.mail.MailSendInfo; 9 | import org.hy.common.mail.SimpleMail; 10 | import org.hy.common.xml.XJava; 11 | import org.hy.common.xml.annotation.Xjava; 12 | import org.hy.common.xml.plugins.XSQLGroup; 13 | import org.hy.common.xml.plugins.XSQLGroupResult; 14 | 15 | 16 | 17 | 18 | 19 | /** 20 | * 定时发送邮件 21 | * 22 | * @author ZhengWei(HY) 23 | * @createDate 2016-05-26 24 | * @version v1.0 25 | */ 26 | @Xjava 27 | public class MailTimeDAO 28 | { 29 | 30 | private static boolean $IsInit = false; 31 | 32 | private static MailOwnerInfo $Owner = null; 33 | 34 | 35 | 36 | private synchronized static MailOwnerInfo getMailOwner() 37 | { 38 | if ( $Owner == null ) 39 | { 40 | $Owner = new MailOwnerInfo(); 41 | $Owner.setSendHost("smtp.qiye.163.com"); 42 | $Owner.setSendPort(25); 43 | $Owner.setValidate(true); 44 | $Owner.setUserName(""); 45 | $Owner.setPassword(""); 46 | } 47 | 48 | return $Owner; 49 | } 50 | 51 | 52 | 53 | public MailTimeDAO() throws Exception 54 | { 55 | if ( !$IsInit ) 56 | { 57 | $IsInit = true; 58 | System.out.println("\n-- " + Date.getNowTime().getFullMilli() + " MTS Starting."); 59 | } 60 | } 61 | 62 | 63 | 64 | /** 65 | * 定时扫描,当有邮件时发送 66 | * 67 | * @author ZhengWei(HY) 68 | * @createDate 2016-05-26 69 | * @version v1.0 70 | * 71 | */ 72 | public void scanMails() 73 | { 74 | XSQLGroup v_GXSQL = ((XSQLGroup)XJava.getObject("GXSQL_MailTime")); 75 | XSQLGroupResult v_Ret = v_GXSQL.executes(); 76 | 77 | if ( v_Ret.isSuccess() ) 78 | { 79 | if ( v_Ret.getExecSumCount().getSumValue() >= 1 ) 80 | { 81 | System.out.println("\n-- " + Date.getNowTime().getFullMilli() + " MT" + v_Ret.getExecSumCount().getSumValue() + "."); 82 | } 83 | } 84 | else 85 | { 86 | v_GXSQL.logReturn(v_Ret); 87 | } 88 | } 89 | 90 | 91 | 92 | /** 93 | * 发送邮件 94 | * 95 | * @author ZhengWei(HY) 96 | * @createDate 2016-05-26 97 | * @version v1.0 98 | * 99 | * @param i_Params 执行或查询参数。 100 | * @param io_Returns 通过returnID标记的,返回出去的多个查询结果集。 101 | * @return 表示是否执行成功 102 | */ 103 | public boolean sendMail(Map i_Params ,Map io_Returns) 104 | { 105 | MailSendInfo v_SendInfo = new MailSendInfo(); 106 | 107 | String [] v_Recivers = Help.getValueIgnoreCase(i_Params ,"Reciver").toString().split(";"); 108 | for (String v_Reciver : v_Recivers) 109 | { 110 | v_SendInfo.setEmail(v_Reciver); 111 | } 112 | v_SendInfo.setSubject(Help.getValueIgnoreCase(i_Params ,"Title") .toString()); 113 | v_SendInfo.setContent(Help.getValueIgnoreCase(i_Params ,"Content").toString()); 114 | 115 | SimpleMail.sendTextMail(getMailOwner() ,v_SendInfo); 116 | 117 | return true; 118 | } 119 | 120 | } 121 | -------------------------------------------------------------------------------- /src/org/hy/log/enums/ERegisterType.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.enums; 2 | 3 | import org.hy.log.common.BaseEnum; 4 | import org.hy.common.Help; 5 | 6 | 7 | 8 | 9 | 10 | /** 11 | * 注册者的注册类型 12 | * 13 | * @author ZhengWei(HY) 14 | * @createDate 2014-12-14 15 | * @version v1.0 16 | */ 17 | public enum ERegisterType implements BaseEnum 18 | { 19 | 20 | /** 普通类型:单表保存日志 */ 21 | $Normal("NORMAL"), 22 | 23 | /** 分区类型:按年分区保存日志 */ 24 | $Partition_Year( "P_YEAR"), 25 | 26 | /** 分区类型:按月分区保存日志 */ 27 | $Partition_Month("P_MONTH"), 28 | 29 | /** 分区类型:按旬分区保存日志 */ 30 | $Partition_10Day("P_10DAY"), 31 | 32 | /** 分区类型:按星期分区保存日志 */ 33 | $Partition_Week( "P_WEEK"), 34 | 35 | /** 分区类型:按天分区保存日志 */ 36 | $Partition_Day( "P_DAY"), 37 | 38 | /** 分区类型:按小时分区保存日志 */ 39 | $Partition_Hour( "P_HOUR"); 40 | 41 | 42 | 43 | private String value; 44 | 45 | 46 | 47 | public static ERegisterType get(String i_Value) 48 | { 49 | if ( Help.isNull(i_Value) ) 50 | { 51 | return null; 52 | } 53 | 54 | String v_Value = i_Value.trim(); 55 | 56 | for (ERegisterType v_Enum : ERegisterType.values()) 57 | { 58 | if ( v_Enum.value.equalsIgnoreCase(v_Value) ) 59 | { 60 | return v_Enum; 61 | } 62 | } 63 | 64 | return null; 65 | } 66 | 67 | 68 | 69 | ERegisterType(String i_Value) 70 | { 71 | this.value = i_Value; 72 | } 73 | 74 | 75 | 76 | @Override 77 | public String getValue() 78 | { 79 | return this.value; 80 | } 81 | 82 | } 83 | -------------------------------------------------------------------------------- /src/org/hy/log/model/DBTableInfo.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.model; 2 | 3 | import org.hy.log.common.BaseModel; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 数据库表的元数据信息 11 | * 12 | * @author ZhengWei(HY) 13 | * @createDate 2014-11-29 14 | * @version v1.0 15 | */ 16 | public class DBTableInfo extends BaseModel 17 | { 18 | 19 | private static final long serialVersionUID = -1916611295949978806L; 20 | 21 | 22 | /** 数据库表名称 */ 23 | private String tableName; 24 | 25 | 26 | 27 | public DBTableInfo() 28 | { 29 | 30 | } 31 | 32 | 33 | 34 | public DBTableInfo(String i_TableName) 35 | { 36 | this.setTableName(i_TableName); 37 | } 38 | 39 | 40 | 41 | @Override 42 | public String getRowKey() 43 | { 44 | return this.tableName; 45 | } 46 | 47 | 48 | 49 | /** 50 | * 获取:数据库表名称 51 | */ 52 | public String getTableName() 53 | { 54 | return tableName; 55 | } 56 | 57 | 58 | 59 | /** 60 | * 设置:数据库表名称 61 | * 62 | * @param tableName 63 | */ 64 | public void setTableName(String tableName) 65 | { 66 | this.tableName = tableName.toUpperCase(); 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /src/org/hy/log/model/MessageKey.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.model; 2 | 3 | import org.hy.log.common.BaseModel; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 消息密钥 11 | * 12 | * @author ZhengWei(HY) 13 | * @createDate 2016-02-23 14 | * @version v1.0 15 | */ 16 | public class MessageKey extends BaseModel 17 | { 18 | private static final long serialVersionUID = 6687810097606990508L; 19 | 20 | /** 系统编号 */ 21 | private String sysid; 22 | 23 | /** 接口编号 */ 24 | private String sid; 25 | 26 | /** 消息密钥 */ 27 | private String msgKey; 28 | 29 | 30 | 31 | public String getRowKey() 32 | { 33 | return this.getSysid() + this.getSid() + this.getMsgKey(); 34 | } 35 | 36 | 37 | 38 | /** 39 | * 获取:系统编号 40 | */ 41 | public String getSysid() 42 | { 43 | return sysid; 44 | } 45 | 46 | 47 | 48 | /** 49 | * 设置:系统编号 50 | * 51 | * @param sysid 52 | */ 53 | public void setSysid(String sysid) 54 | { 55 | this.sysid = sysid; 56 | } 57 | 58 | 59 | 60 | /** 61 | * 获取:接口编号 62 | */ 63 | public String getSid() 64 | { 65 | return sid; 66 | } 67 | 68 | 69 | 70 | /** 71 | * 设置:接口编号 72 | * 73 | * @param sid 74 | */ 75 | public void setSid(String sid) 76 | { 77 | this.sid = sid; 78 | } 79 | 80 | 81 | 82 | /** 83 | * 获取:消息密钥 84 | */ 85 | public String getMsgKey() 86 | { 87 | return msgKey; 88 | } 89 | 90 | 91 | 92 | /** 93 | * 设置:消息密钥 94 | * 95 | * @param msgKey 96 | */ 97 | public void setMsgKey(String msgKey) 98 | { 99 | this.msgKey = msgKey; 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /src/org/hy/log/model/Version.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.model; 2 | 3 | import org.hy.common.app.Param; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 项目版本信息,及对应的数据库脚本的版本信息 11 | * 12 | * @author ZhengWei(HY) 13 | * @createDate 2014-12-06 14 | * @version v1.0 15 | */ 16 | public class Version extends Param 17 | { 18 | 19 | private static final long serialVersionUID = -1034991845979052397L; 20 | 21 | 22 | 23 | /** 数据库脚本的版本 */ 24 | private String dbVersion; 25 | 26 | 27 | 28 | /** 29 | * 获取:数据库脚本的版本 30 | */ 31 | public String getDbVersion() 32 | { 33 | return dbVersion; 34 | } 35 | 36 | 37 | 38 | /** 39 | * 设置:数据库脚本的版本 40 | * 41 | * @param dbVersion 42 | */ 43 | public void setDbVersion(String dbVersion) 44 | { 45 | this.dbVersion = dbVersion; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/org/hy/log/msg/MsgErrorResponse.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.msg; 2 | 3 | import org.hy.common.app.Param; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 接口统一错误信息 11 | * 12 | * 错误编码格式:AA BB CC DDD E 13 | * 错误编码共10位编码; 14 | * AA 表示系统名称 ,用数字表示; 例:01表示商城前台系统、02表示商城管理系统; 15 | * BB 表示模块(类)名称,用数字表示; 例:01表示商家信息模块、02表示商铺信息模块; 16 | * CC 表示业务操作名称,用数字表示; 例:01表示创建订单、02表示终止订单; 17 | * DDD表示信息编号 ,用数字和字母表示;例:A01表示创建订单时的数据存储服务,A02表示订单校验错误;建议字母全为大字 18 | * E 表示错误类别 ,用数字表示; ‘0’和‘1’表示系统类错误和业务类错误; 19 | * 20 | * 统一规范: 21 | * 01:商城前台 22 | * 02:商城运营管理 23 | * 03:第三方接口 24 | * 04:业务逻辑 25 | * 05:CMS 26 | * 06:会员 27 | * 07:商户 28 | * 08:商品 29 | * 09:结算 30 | * 10:订单 31 | * 11:诚信评价 32 | * 12:系统管理 33 | * 13: 日志 34 | * 35 | * 日志系统的模块分类(BB级) 36 | * 00:通用模块 37 | * 01:创建模块 - Log.Create 38 | * 39 | * @author ZhengWei(HY) 40 | * @version v1.0 41 | * @createDate 2014-09-28 42 | */ 43 | public class MsgErrorResponse 44 | { 45 | 46 | /** 错误编码 */ 47 | private String errorCode; 48 | 49 | /** 错误信息 */ 50 | private String errorInfo; 51 | 52 | 53 | 54 | public MsgErrorResponse() 55 | { 56 | 57 | } 58 | 59 | 60 | 61 | public MsgErrorResponse(Param i_Param) 62 | { 63 | this.errorCode = i_Param.getName(); 64 | this.errorInfo = i_Param.getValue(); 65 | } 66 | 67 | 68 | 69 | /** 70 | * 获取:错误编码 71 | */ 72 | public String getErrorCode() 73 | { 74 | return errorCode; 75 | } 76 | 77 | 78 | 79 | /** 80 | * 设置:错误编码 81 | * 82 | * @param errorCode 83 | */ 84 | public void setErrorCode(String errorCode) 85 | { 86 | this.errorCode = errorCode; 87 | } 88 | 89 | 90 | 91 | /** 92 | * 获取:错误信息 93 | */ 94 | public String getErrorInfo() 95 | { 96 | return errorInfo; 97 | } 98 | 99 | 100 | 101 | /** 102 | * 设置:错误信息 103 | * 104 | * @param errorInfo 105 | */ 106 | public void setErrorInfo(String errorInfo) 107 | { 108 | this.errorInfo = errorInfo; 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /src/org/hy/log/msg/MsgLogInfoRequest.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.msg; 2 | 3 | import org.hy.log.model.LogInfo; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 日志信息的请求消息 11 | * 12 | * @author ZhengWei(HY) 13 | * @createDate 2014-12-12 14 | * @version v1.0 15 | */ 16 | public class MsgLogInfoRequest extends LogInfo 17 | { 18 | 19 | private static final long serialVersionUID = -5255075986914550029L; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/org/hy/log/msg/MsgLogRegisterRequest.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.msg; 2 | 3 | import org.hy.log.model.LogRegister; 4 | 5 | 6 | 7 | 8 | 9 | /** 10 | * 日志注册者的配置信息的请求消息 11 | * 12 | * @author ZhengWei(HY) 13 | * @createDate 2014-12-14 14 | * @version v1.0 15 | */ 16 | public class MsgLogRegisterRequest extends LogRegister 17 | { 18 | 19 | private static final long serialVersionUID = -3031058089777856724L; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/org/hy/log/service/ILogInfoService.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.service; 2 | 3 | import org.hy.log.msg.MsgLogInfoRequest; 4 | import org.hy.log.msg.MsgLogRegisterRequest; 5 | import org.hy.common.Return; 6 | import org.hy.common.xml.plugins.AppMessage; 7 | 8 | 9 | 10 | 11 | 12 | /** 13 | * 日志信息的服务层接口 14 | * 15 | * @author ZhengWei(HY) 16 | * @createDate 2014-12-12 17 | * @version v1.0 18 | */ 19 | public interface ILogInfoService 20 | { 21 | 22 | /** 23 | * 记录日志 24 | * 25 | * @author ZhengWei(HY) 26 | * @createDate 2014-12-12 27 | * @version v1.0 28 | * 29 | * @param i_AppMsg 30 | * @return Return.paramStr 异常时返回错误编号 31 | */ 32 | public Return log(AppMessage i_AppMsg); 33 | 34 | 35 | 36 | /** 37 | * 1. 注册者的注册动作 38 | * 2. 注册者的变动注册配置的动作 39 | * 40 | * @author ZhengWei(HY) 41 | * @createDate 2014-12-14 42 | * @version v1.0 43 | * 44 | * @param io_AppMsg 45 | * @return Return.paramStr 异常时返回错误编号 46 | */ 47 | public Return register(AppMessage io_AppMsg); 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/org/hy/log/service/IServerInfoService.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.service; 2 | 3 | import java.util.List; 4 | 5 | import org.hy.common.Return; 6 | 7 | 8 | 9 | 10 | 11 | /** 12 | * 服务运行信息的服务层接口 13 | * 14 | * @author ZhengWei(HY) 15 | * @createDate 2014-11-28 16 | * @version v1.0 17 | */ 18 | public interface IServerInfoService 19 | { 20 | 21 | /** 22 | * 初始化数据库对象 23 | * 24 | * 这应当是个安全的接口。只有探测到表不存在时,才会创建表。 25 | * 由脚本编写者来保证没有Drop、Delete、Update语句,只应有Create、Insert语句 26 | * 27 | * @author ZhengWei(HY) 28 | * @createDate 2014-11-28 29 | * @version v1.0 30 | * 31 | * @return Return.int 表示是否执行语句。0:放弃执行 1:执行语句 32 | * Return.str 表示执行语句的表名称 33 | * Return.Obj 表示执行语句的类型 34 | */ 35 | public List> initDB(); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/org/hy/log/view/ExampleController.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.view; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.ui.Model; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | 7 | 8 | 9 | 10 | 11 | /** 12 | * 控制层的样例 13 | * 14 | * @author ZhengWei(HY) 15 | * @createDate 2017-04-07 16 | * @version v1.0 17 | */ 18 | @Controller 19 | public class ExampleController 20 | { 21 | 22 | @RequestMapping("/hello") 23 | public String hello(Model io_Model) 24 | { 25 | //将数据添加到视图数据容器中 26 | io_Model.addAttribute("param01" ,"Hello "); 27 | io_Model.addAttribute("param02" ,"World!"); 28 | 29 | return "Hello"; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /test/org/hy/log/common/JU_Rest_CreateLog.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.common; 2 | 3 | import org.hy.common.Date; 4 | import org.hy.common.StringHelp; 5 | import org.hy.common.app.Param; 6 | import org.hy.common.thread.Task; 7 | import org.hy.common.thread.TaskPool; 8 | import org.hy.common.thread.ThreadPool; 9 | import org.hy.common.xml.annotation.XType; 10 | import org.hy.common.xml.annotation.Xjava; 11 | import org.junit.FixMethodOrder; 12 | import org.junit.Test; 13 | import org.junit.runners.MethodSorters; 14 | 15 | 16 | 17 | 18 | 19 | /** 20 | * 测试:创建日志 21 | * 22 | * @author ZhengWei(HY) 23 | * @createDate 2014-12-30 24 | * @version v1.0 25 | */ 26 | @Xjava(XType.XML) 27 | @FixMethodOrder(MethodSorters.NAME_ASCENDING) 28 | public class JU_Rest_CreateLog extends BaseJunit 29 | { 30 | private static final String $TaskType = "RestTask"; 31 | 32 | private static int $SerialNo = 0; 33 | 34 | private static int $Count = 0; 35 | 36 | 37 | 38 | @Test 39 | public void test_001() 40 | { 41 | for (int x=1; x<10; x++) 42 | { 43 | for (int i=1; i<=10000; i++) 44 | { 45 | TaskPool.putTask(new RestTask(i)); 46 | } 47 | } 48 | 49 | while ( ThreadPool.getActiveThreadCount() >= 1 ) 50 | { 51 | ThreadPool.sleep(1000 * 60); 52 | } 53 | } 54 | 55 | 56 | 57 | public synchronized int getCount() 58 | { 59 | return ++$Count; 60 | } 61 | 62 | 63 | 64 | public void executeRestTask(int i_Index) 65 | { 66 | Param v_RestRequest = (Param)this.getObject("RestRequest_CreateLog"); 67 | String v_RestInfo = v_RestRequest.getValue(); 68 | Date v_BeginTime = new Date(); 69 | 70 | String v_RestResponse = BaseAppMessage.restRequest(v_RestRequest.getName() ,v_RestInfo ,"UTF-8"); 71 | 72 | 73 | System.out.println("-- TNO = " + StringHelp.lpad(i_Index ,8 ," ") 74 | + " CNO = " + StringHelp.lpad(getCount() ,8 ," ") 75 | + " " + (Date.getNowTime().getTime() - v_BeginTime.getTime()) + "毫秒 " 76 | + Date.getNowTime().getFullMilli() + " " + v_RestResponse); 77 | } 78 | 79 | 80 | 81 | 82 | 83 | class RestTask extends Task 84 | { 85 | private int index; 86 | 87 | 88 | 89 | public RestTask(int i_Index) 90 | { 91 | super($TaskType); 92 | 93 | this.index = i_Index; 94 | } 95 | 96 | 97 | private synchronized int GetSerialNo() 98 | { 99 | return ++$SerialNo; 100 | } 101 | 102 | 103 | @Override 104 | public void execute() 105 | { 106 | executeRestTask(this.index); 107 | 108 | this.finishTask(); 109 | } 110 | 111 | 112 | @Override 113 | public int getSerialNo() 114 | { 115 | return GetSerialNo(); 116 | } 117 | 118 | 119 | @Override 120 | public String getTaskDesc() 121 | { 122 | return "" + this.getTaskNo(); 123 | } 124 | 125 | } 126 | 127 | } 128 | -------------------------------------------------------------------------------- /test/org/hy/log/common/JU_Rest_CreateLog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | http://10.1.50.48:8083/LogWeb/services/log/log 18 | 19 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /test/org/hy/log/dao/impl/JU_LogInfoDAOImpl.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.dao.impl; 2 | 3 | import org.junit.FixMethodOrder; 4 | import org.junit.Test; 5 | import org.junit.runners.MethodSorters; 6 | 7 | import org.hy.log.common.BaseJunit; 8 | import org.hy.log.dao.ILogRegisterDAO; 9 | 10 | 11 | 12 | 13 | 14 | /** 15 | * 测试单元:业务操作日志DAO 16 | * 17 | * @author ZhengWei(HY) 18 | * @createDate 2014-12-13 19 | * @version v1.0 20 | */ 21 | @FixMethodOrder(MethodSorters.NAME_ASCENDING) 22 | public class JU_LogInfoDAOImpl extends BaseJunit 23 | { 24 | private ILogRegisterDAO logRegisterDAO = (ILogRegisterDAO)this.getObject("LogRegisterDAO"); 25 | 26 | 27 | 28 | @Test 29 | public void registerCreateTable() 30 | { 31 | this.logRegisterDAO.createTable("HY"); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /test/org/hy/log/service/JU_LogInfoService.java: -------------------------------------------------------------------------------- 1 | package org.hy.log.service; 2 | 3 | import org.junit.FixMethodOrder; 4 | import org.junit.Test; 5 | import org.junit.runners.MethodSorters; 6 | 7 | import org.hy.log.common.BaseJunit; 8 | import org.hy.log.enums.ERegisterType; 9 | import org.hy.log.msg.MsgLogRegisterRequest; 10 | import org.hy.log.service.impl.LogInfoService; 11 | import org.hy.common.Date; 12 | 13 | 14 | 15 | 16 | 17 | /** 18 | * 测试单元:日志操作的服务类 19 | * 20 | * @author ZhengWei(HY) 21 | * @createDate 2014-12-14 22 | * @version v1.0 23 | */ 24 | @FixMethodOrder(MethodSorters.NAME_ASCENDING) 25 | public class JU_LogInfoService extends BaseJunit 26 | { 27 | private LogInfoService logInfoService = (LogInfoService) this.getObject("LogInfoService"); 28 | 29 | 30 | 31 | @Test 32 | public void buildLogTable() 33 | { 34 | MsgLogRegisterRequest v_Msg = new MsgLogRegisterRequest(); 35 | 36 | v_Msg.setSysID("HY"); 37 | v_Msg.setRegisterTypeEnumInfo(ERegisterType.$Normal); 38 | this.logInfoService.buildLogTable(v_Msg ,new Date()); 39 | 40 | 41 | // 测试:年 42 | v_Msg.setRegisterTypeEnumInfo(ERegisterType.$Partition_Year); 43 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-01-01")); 44 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-06-01")); 45 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-12-31")); 46 | 47 | 48 | // 测试:月 49 | v_Msg.setRegisterTypeEnumInfo(ERegisterType.$Partition_Month); 50 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-01-01")); 51 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-05-15")); 52 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-09-30")); 53 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-12-31")); 54 | 55 | 56 | // 测试:旬 57 | v_Msg.setRegisterTypeEnumInfo(ERegisterType.$Partition_10Day); 58 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-01-01")); 59 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-05-15")); 60 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-09-30")); 61 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-12-31")); 62 | 63 | 64 | // 测试:周 65 | v_Msg.setRegisterTypeEnumInfo(ERegisterType.$Partition_Week); 66 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-01-01")); 67 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-05-15")); 68 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-09-30")); 69 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-12-31")); // 边界值 70 | 71 | 72 | // 测试:天 73 | v_Msg.setRegisterTypeEnumInfo(ERegisterType.$Partition_Day); 74 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-01-01")); 75 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-05-15")); 76 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-09-30")); 77 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-12-31")); 78 | } 79 | 80 | 81 | 82 | @Test 83 | public void buildLogTable_Hour() 84 | { 85 | MsgLogRegisterRequest v_Msg = new MsgLogRegisterRequest(); 86 | 87 | v_Msg.setSysID("HY"); 88 | 89 | // 测试:小时 90 | v_Msg.setRegisterTypeEnumInfo(ERegisterType.$Partition_Hour); 91 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-01-01")); 92 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-05-15")); 93 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-09-30")); 94 | this.logInfoService.buildLogTable(v_Msg ,new Date("2014-12-31")); 95 | } 96 | 97 | } 98 | -------------------------------------------------------------------------------- /testScript/restful/Log.Create.A001.记录日志.001.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/logPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "logID": "日志编号。由外部调用系统传递,当然也可以为空", 7 | "logType": "日志分组类型", 8 | "logContent": "日志内容", 9 | "operatorNo": "操作人编号", 10 | "operationType": "操作类型。如,添加、删除、修改、查询等", 11 | "operationRemark": "操作备注" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.01.普通单表.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/registerPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "registerType": "NORMAL", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.02.按年分区.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/registerPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "registerType": "P_YEAR", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.02.按月分区.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/logPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "logID": "日志编号。由外部调用系统传递,当然也可以为空", 7 | "logType": "日志分组类型", 8 | "logContent": "日志内容", 9 | "operatorNo": "操作人编号", 10 | "operationType": "操作类型。如,添加、删除、修改、查询等", 11 | "operationRemark": "操作备注" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.03.按月分区.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/registerPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "registerType": "P_MONTH", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.04.按旬分区.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/registerPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "registerType": "P_10DAY", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.05.按周分区.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/registerPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "registerType": "P_WEEK", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.06.按天分区.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/registerPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "registerType": "P_DAY", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /testScript/restful/Log.Register.A001.注册系统.07.按小时分区.xml: -------------------------------------------------------------------------------- 1 | 2 | 1.1http://127.0.0.1:8080/LogWeb/services/log/registerPOST{ 3 | "sysid": "SYS_LogWeb", 4 | "sidv": "1.0", 5 | "body": { 6 | "registerType": "P_HOUR", 7 | } 8 | } 9 | --------------------------------------------------------------------------------