包含标签 开源组件 的文章

Logback实践

后缀设置为zip,gz时,会在轮转时自动压缩。 使用相应的slf4j over包,可以将acl,log4j的输出,转到logback。 http://logback.qos.ch/manual/layouts.html 对输出m……

阅读全文

Nginx实践

访问日志 [Access.log] log_format main '$remote_addr $remote_user [$time_local] "$request" $http_host ' '$status $upstream_status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $ssl_protocol $ssl_cipher $upstream_addr ' '$request_time $upstream_response_time'; 变量名 变量名称 变量描述 举例说明 $remote_addr 客户端地址 113.140.15.90 $remote_user 客户端用户名称 - $time_local 访问时间和时区 18/Jul/2012:17:00:01 +0800 $request 请求的……

阅读全文

序列化相关实践

Protobuf 当前grpc所使用的序列化方式。 protoc.exe –proto_path=....\examples –cpp_out=....\examples ....\examples\addressbook.proto 该命令中–proto_path参数表示.proto消息定义文件路径(如果在当前目录下,……

阅读全文

Mybatis实践

1,${}拼接符 与 #{}占位符 的区别 2,xml映射中,传入多个参数:类,map,@param注解,${index} 3,sqlsession,……

阅读全文

Spring实践

factory_method 工厂创建bean实例 依赖倒置 A. 上层模块不应该依赖于下层模块,它们共同依赖于一个抽象。 B. 抽象不能依赖于具象,具象依赖于抽象。 IOC控制反转:……

阅读全文

Struts2

使用jsp+servlet+javabean实现MVC。其中jsp作为view,servlet作为control,javabean则是具体的……

阅读全文

Tomcat实践

实践 Please remember that a JSP page, even one that simply prints out “OK”, will create a session 编码相关 request的编码: server.xml Connector配置 URIEncoding="UTF-8” response的编码: setCharecahterEncoding tomcat……

阅读全文

Apache HttpClient

httpclient = new DefaultHttpClient(cm);//可以通过入参设置manager等,建议使用PoolingClientConnectio……

阅读全文

Apollo

配置中心 https://daocloud-labs.github.io/DX-DMP-Public-Docs/apollo/bootstrap.html https://github.com/ctripcorp/apollo……

阅读全文