mwhgjava
- 浏览: 93148 次
- 性别:
- 来自: 广州
最近访客
社区版块
- ( 0)
- ( 2)
- ( 0)
存档分类
- 2023-12 ( 1)
- ( 2)
- ( 1)
最新评论
-
:
保护日志发生现场locationinfo(日志发生时的类、方法 ...
-
:
good~
-
mwhgjava:
bluepenguin2008 写道你好,请问这个封装后怎么用 ...
-
:
你好,请问这个封装后怎么用啊。每个类还是要像下面这样声明吗?p ...
文章列表
function formatdurationtime(durationtime) {
function padstart(value, size) {
return value.tostring().padstart(size, '0');
}
var millisecond = durationtime % 1000;
durationtime = math.floor(durationtime / 1000);
if (durationtime == 0) {
return "." ...
- 2023-12-27 13:05
- 浏览 52
- 分类:web前端
elasticsearch-head
ealsticsearch只是后端提供各种api,那么怎么直观的使用它呢?elasticsearch-head将是一款专门针对于elasticsearch的客户端工具。
elasticsearch-head配置包,下载地址:https://github.com/mobz/elasticsearch-head。
1.npm install, npm start的npm是什么?
npm是nodejs下的包管理器,安装nodejs就可以附带安装npm了。
https://nodejs.org/zh-cn/ 下载长期支持版本:lts
2.el ...
- 2021-03-09 09:07
- 浏览 525
- 分类:web前端
问题
最佳工作—请举例说明你的最佳工作表现:
答案
1.应用设计能力:
完成云原生日志设计
完成事件驱动设计
完成交互式workflow响应调优设计。
2.对其他项目优秀实践进行借鉴,应用于新的项目中:
2.1 将pretty json应用到config management,提高config/workflow/decision/rtable/amis的检视效率。
2.2 将多环境部署config和检查version聚合,提高/workflow/decision/rtable/amis的部署和版本检查效率。
2.3 将交互式workf ...
- 2021-03-05 10:26
- 浏览 106
- 分类:非技术
clipse使用的是有经常会出现jpa project change event handler(watering)很卡
网上的解决办法是
[help > installation details > installed software]
下面找到dali java persistence tools -jpa support 然后删掉重启
但是有个时候还是会出现jpa project change event handler的问题
那么关掉eclipse然后在安装目录下plugins/features下面把org.eclipse.jpt.* 删除再重启,效果才出 ...
- 2020-12-24 15:24
- 浏览 678
- 分类:非技术
maven项目:资源文件放在src/main/resources
ide调试时未打包:资源文件放在target/classes中
非spring boot的瘦包,资源文件放在xxx.jar包的根下。
spring boot肥包,资源文件放在xxx.jar包下的boot-inf\classes\中。
org.springframework.core.io.classpathresource 支持ide时的未打包资源,和瘦包。不支持spring boot可运行的肥包。
org.springframework.core.io.defaultresourceloader 支持ide时的未打 ...
- 2019-11-22 17:54
- 浏览 372
- 分类:开源软件
show full processlist;
#根据user过滤
select *
from information_schema.processlist
where user="username"
order by host;
#根据host ip过滤,由于host包括port,需要提取ip
select *
from information_schema.processlist
where left(host, instr(host, ':')-1)='192.168.10.1'
order by host;
#根据ip统计连接数
se ...
- 2019-11-08 14:19
- 浏览 413
- 分类:数据库
public class durationformat {
public static string format(long durationmilliseconds) {
// milliseconds
long iterator = durationmilliseconds;
long milliseconds = iterator % 1000;
// seconds
iterator /= 1000;
long seconds = iterator % 60;
...
- 2019-11-07 09:19
- 浏览 299
- 分类:开源软件
import java.util.uuid;
public class uuidutil {
/**
* 1111
*
* all 1 in 16 hexadecimal
*/
private static final long hexmod = 15l;
/**
* all possible chars for representing a number as a hex string
*/
private static final char[] digits = n ...
- 2019-09-18 14:00
- 浏览 2885
- 分类:编程语言
http://zhk.me/1281.html
以下我们常用的数据结构,都是线程不安全的。
arraylist, linkedlist
hashmap, linkedhashmap, treemap
hashset, linkedhashset, treeset
stringbuilder
parallelstream是以多线程的方式,执行定义的代码块。因为是多线程,所以在代码块里操作线程不安全的collection,就会引发concurrency问题。
list results = lists.newarraylist();
sources ...
- 2019-07-01 17:23
- 浏览 1704
- 分类:开源软件
about parallelstream collect results. please use the collect method. the collect method is concurrent secure.
import static org.junit.assert.assertequals;
import static org.junit.assert.asserttrue;
import java.util.arraylist;
import java.util.hashmap;
import java.util.hashset;
import java. ...
- 2019-07-01 17:15
- 浏览 338
- 分类:开源软件
- 博客分类:
org.springframework.scheduling.annotation.@async使用的线程池
org.springframework.aop.interceptor.asyncexecutioninterceptor.invoke(final methodinvocation invocation) 102 ->107 对@async注解的方法代为执行。
org.springframework.aop.interceptor.asyncexecutionaspectsupport.determineasyncexecutor(method method) 149 →162 ...
- 2019-05-31 15:04
- 浏览 854
- 分类:开源软件
- 博客分类:
org.springframework.scheduling.annotation.@scheduled
使用的线程池
org.springframework.scheduling.annotation.scheduledannotationbeanpostprocessor#finishregistration() 216→235,240,256,261
org.springframework.scheduling.annotation.scheduledannotationbeanpostprocessor#resolveschedulerbean(beanfactory, class&l ...
- 2019-05-31 15:01
- 浏览 1098
- 分类:开源软件
@echo off
if "%1"=="" (
set path= d:\\_m2
) else (
set path= %1
)
echo start clear mvn %path%
rem 过滤出(*.sha1-in-progress为后缀的文件
for /r %path% %%i in (*.sha1-in-progress) do (
echo %%i
rem 删除文件所在目录
rd /s/q %%i\..
)
echo finish clear mvn %path%
pause
...
- 2019-03-18 16:24
- 浏览 657
- 分类:开源软件
[转]https://blog.csdn.net/huofenghuang188/article/details/44828675
eclipse搜索所有汉字
项目收尾阶段,客户强力要求源码中不能出现中文,连注释也要翻译成英文的。于是就需要讲源码中的所有中文搜索出来,经过查找资料成功解决问题。
方 ...
- 2019-01-22 17:53
- 浏览 752
- 分类:非技术
https://www.cnblogs.com/ljy-20180122/p/9157912.html
mysql运行报the server time zone value 'öð¹ú±ê׼걼ä' is unrecognized or represents more than one time zone的解决方法
话不多说,从错误即可知道是时区的错误,因此只要将时区设置为你当前系统时区即可,
因此使用root用户登录mysql,按照如下图所示操作即可。
show variables like '%time_zone%';
set global time ...
- 2019-01-02 15:37
- 浏览 1073
- 分类:数据库
« 上一页 1