gaojingsong
- 浏览: 1112131 次
- 性别:
- 来自: 深圳
社区版块
- ( 4)
- ( 0)
- ( 80)
最新评论
-
gaojingsong:
jstl1point0 写道高级版本jdk可以直接安装不用配置 ...
【win7配置jdk 环境变量】 -
jstl1point0:
高级版本jdk可以直接安装不用配置了
【win7配置jdk 环境变量】 -
hdd901002:
光说明错误在哪里有什么用,解决方法啊。。。我也碰到了,一条jo ...
mycat源码解读--错误之【can't find table define in schema 】 -
masuweng:
【java之图片水印】 -
masuweng:
【java之多线程下载文件实现】
文章列表
- 博客分类:
- java中间件
- java 模块知识小结
1、工厂方法区分不同类型数据库
/**
* get current db performance
* @return monitorrecord
*/
public monitorrecord getcurrentdbperformance(){
monitorrecord monitorrecord = null;
connection conn = null;
try{
conn = datasource.getconnection();
string driverclassname = datasource ...
- 2021-08-16 18:15
- 浏览 792
- 分类:编程语言
- 博客分类:
- java 模块知识小结
public static string format2duration(long ms) {
long days = milliseconds.todays(ms);
long hours = milliseconds.todurationhours(ms);
long minutes = milliseconds.todurationminutes(ms);
long seconds = milliseconds.todurationseconds(ms);
}
static final long c0 = 1l;
stat ...
- 2021-08-12 10:54
- 浏览 943
- 分类:编程语言
- 博客分类:
- java 模块知识小结
最近在研究源码的时候,碰到了一个自己没有见到的注解,经过研究发现是java自己的注解,具体代码如下:
public class masterserver implements istoppable {
/**
* master server startup, not use web service
*
* @param args arguments
*/
public static void main(string[] args) {
thread.currentthread().setname(const ...
- 2021-08-11 17:35
- 浏览 306
- 分类:编程语言
package cn.com.demo.test4j;
import com.alibaba.fastjson.json;
import com.alibaba.fastjson.jsonobject;
import java.util.map;
/**
* fastjson json字符串自动转换
*
*/
public class jsontomaptest01 {
public static void main(string[] args){
/**
{
"rowkey": " ...
- 2021-08-11 11:10
- 浏览 415
- 分类:编程语言
- 博客分类:
- docker
[root@node1 ~]# cd /home/gaojs/
[root@node1 gaojs]# ls
apache-dolphinscheduler-1.3.6-bin.tar.gz docker_mysql documents grafana-8.0.5 hadoop2.8.1 hive239 nacos public spark-3.0.3-bin-hadoop2.7 templates
desktop docker_redis downlo ...
- 2021-08-05 16:14
- 浏览 195
- 分类:开源软件
- 博客分类:
- java 模块知识小结
1、自定义分页
请求参数:
@pathvariable integer pageno,@pathvariable integer pagesize
int totalsize = querylist.size();
int totalpage = totalsize % pagesize ==0 ? totalsize /pagesize:(totalsize % pagesize) 1;
if(totalpage > 1 ){
// 0,10 11,20
int fromindex = 0; // 开始索引
int toindex = 0; // 结束索 ...
- 2021-08-05 11:12
- 浏览 313
- 分类:编程语言
- 博客分类:
- linux
lvs十种调度算法
1)rr、2)wrr、3)lc、4)wlc、5)sh、6)dh、7)lblc、8)lblcr、9)sed、10)nq
1.轮询(round robin)rr: 将客户端请求平均分发到real server。
2.加权轮询(weighted round robin)wrr:根据real server 权重值进行轮询的调度。
3.最少连接(least connections)lc:选择连接最少的服务器。
4.加权最少连接(weighted least connections)wlc:根据real server 权重值,选择连接数最少服务器。
...
- 2021-07-28 11:45
- 浏览 953
- 分类:操作系统
- 博客分类:
- 编程语言--java之spring
jdk动态代理:利用反射机制生成一个实现代理接口的匿名类,在调用具体方法前调用invokehandler来处理。
cglib动态代理:利用asm(开源的java字节码编辑库,操作字节码)开源包,将代理对象类的class文件加载进来,通过修改其字节码生成子类来处理。
区别:jdk代理只能对实现接口的类生成代理;cglib是针对类实现代理,对指定的类生成一个子类,并覆盖其中的方法,这种通过继承类的实现方式,不能代理final修饰的类
1、jdk代理使用的是反射机制实现aop的动态代理,cglib代理使用字节码处理框架asm,通过修改字节码生成子类。
所以jdk动态 ...
- 2021-07-28 10:27
- 浏览 195
- 分类:开源软件
- 博客分类:
- hazelcast
what is hazelcast
hazelcast is a distributed computation and storage platform for consistently low-latency querying, aggregation and stateful computation against event streams and traditional data sources. it allows you to quickly build resource-efficient, real-time applications. you can deploy it ...
- 2021-07-21 16:32
- 浏览 371
- 分类:开源软件
- 博客分类:
- flink
flink修改web应用的端口号
streamexecutionenvironment env = streamexecutionenvironment.getexecutionenvironment();
if(env instanceof localstreamenvironment){
field field =env.getclass().getsuperclass().getdeclaredfield("configuration");
field.setaccessible(true);
configuration configuration ...
- 2021-07-13 16:47
- 浏览 1457
- 分类:开源软件
- 博客分类:
- prometheus
prometheus 是由 soundcloud 开源监控告警欧洲杯足彩官网的解决方案。
prometheus
prometheus存储的是时序数据,即按相同时序(相同名称和标签),以时间维度存储连续的数据的集合。
时序(time series)是由名字(metric)以及一组key/value标签定义的,具有相同的名字以及标签属于相同时序。
metric名字:表示metric的功能,如http_request_total。时序的名字由 ascii 字符,数字,下划线,以及冒号组成,它必须满足正则表达式 [a-za-z_:][a-za-z0-9_:]*, 其名字应该具有语义化,一般表示一个可 ...
- 2021-07-13 16:42
- 浏览 462
- 分类:开源软件
- 博客分类:
- 对象存储服务简介
对象存储服务(object storage service,obs)是一个基于对象的海量存储服务,为客户提供海量、安全、高可靠、低成本的数据存储能力。
obs系统和单个桶都没有总数据容量和对象/文件数量的限制,为用户提供了超大存储容量的能� ...
- 2021-07-12 08:44
- 浏览 808
- 分类:行业应用
- 博客分类:
- 大数据--redis
codis 是一个分布式 redis 欧洲杯足彩官网的解决方案, 对于上层的应用来说, 连接到 codis proxy 和连接原生的 redis server 没有明显的区别 (不支持的命令列表), 上层应用可以像使用单机的 redis 一样使用, codis 底层会处理请求的转发, 不停机的数据迁移等工作, 所有后边的一切事情, 对于前面的客户端来说是透明的, 可以简单的认为后边连接的是一个内存无限大的 redis 服务.
组成部分
codis proxy (codis-proxy)
codis manager (codis-config)
codis redis (codis-serv ...
- 2021-07-08 20:54
- 浏览 501
- 分类:开源软件
- 博客分类:
- 堡垒机
jumpserver 是全球首款完全开源的堡垒机, 使用 gnu gpl v2.0 开源协议, 是符合 4a 的专业运维审计系统。
jumpserver 使用 python / django 进行开发, 遵循 web 2.0 规范, 配备了业界领先的 web terminal 欧洲杯足彩官网的解决方案, 交互界面美观、用户体验好。
jumpserver 采纳分布式架构, 支持多机房跨区域部署, 中心节点提供 api, 各机房部署登录节点, 可横向扩展、无并发访问限制。
jumpserver 现已支持管理 ssh、 telnet、 rdp、 vnc 协议资产。
特色优势
开源: 零门槛, ...
- 2021-07-07 19:30
- 浏览 529
- 分类:开源软件
- 博客分类:
- sentry介绍
sentry is a service that helps you monitor and fix crashes in realtime. the server is in python, but it contains a full api for sending events from any language, in any application.
sentry's java sdk enables capturing sessions for release health as well as reporting messages and errors.
se ...
- 2021-07-07 14:23
- 浏览 551
- 分类:开源软件