There is no getter for property named 'batchno' in 'class db._default.Spd_podtl' ,可能是包重复导致的(瓜皮)'truncated incorrect double value:'XXXXX'' ,mysql报错,原因为表关联的字段的类型不一致,例如 String = double- 定时器启动了,但是运行历史里没有记录,可能是参数太长了导致执行定时器失败
- 根据端口号查看项目的路径:
[user]$ lsof -i:8888
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 12432 hscm 318u IPv4 148424932 0t0 TCP *:wta-wsp-s (LISTEN)
java 12432 hscm 354u IPv4 564688135 0t0 TCP localhost.localdomain:wta-wsp-s->192.168.1.103:57311 (ESTABLISHED)
java 12432 hscm 356u IPv4 564681184 0t0 TCP localhost.localdomain:wta-wsp-s->192.168.1.103:57314 (ESTABLISHED)
java 12432 hscm 357u IPv4 564686142 0t0 TCP localhost.localdomain:wta-wsp-s->192.168.1.103:57315 (ESTABLISHED)
java 12432 hscm 358u IPv4 564170753 0t0 TCP localhost.localdomain:wta-wsp-s->192.168.1.103:57312 (ESTABLISHED)
[user]$ ll /proc/12432
#这是输出的其中一行就是路径了
lrwxrwxrwx 1 hscm hscm 0 7月 14 15:28 cwd -> /home/hscm/spd-px/bin
- 先加锁再查询
- root账号远程登录不上,在服务器上可以登,应该是root账号没有授权远程的电脑登录权限
grant all privileges on *.* to '用户名'@'%' identified by '登录密码' with grant option;
flush privileges;
- 心情不好,早睡早起
- js加减乘除丢失精度的问题:
function floatAdd(arg1, arg2) {
var r1, r2, m;
try {
r1 = arg1.toString().split(".")[1].length;
} catch (e) {
r1 = 0;
}
try {
r2 = arg2.toString().split(".")[1].length;
} catch (e) {
r2 = 0;
}
m = Math.pow(10, Math.max(r1, r2));
return (floatMultiply(arg1 , m) + floatMultiply(arg2 , m)) / m;
}
function floatSub(arg1, arg2) {
var r1, r2, m, n;
try {
r1 = arg1.toString().split(".")[1].length;
} catch (e) {
r1 = 0;
}
try {
r2 = arg2.toString().split(".")[1].length;
} catch (e) {
r2 = 0;
}
m = Math.pow(10, Math.max(r1, r2));
n = (r1 >= r2) ? r1 : r2;
return ((floatMultiply(arg1 , m) - floatMultiply(arg2 , m)) / m).toFixed(n);
}
function floatMultiply(arg1, arg2) {
if(arg1 == null || arg2 == null){
return null;
}
var n1,n2;
var r1, r2;
try {
r1 = arg1.toString().split(".")[1].length;
} catch (e) {
r1 = 0;
}
try {
r2 = arg2.toString().split(".")[1].length;
} catch (e) {
r2 = 0;
}
n1 = Number(arg1.toString().replace(".", ""));
n2 = Number(arg2.toString().replace(".", ""));
return n1 * n2 / Math.pow(10, r1+r2);
}
function floatDivide(arg1, arg2) {
if(arg1 == null){
return null;
}
if(arg2 == null || arg2 == 0){
return null;
}
var n1,n2;
var r1, r2;
try {
r1 = arg1.toString().split(".")[1].length;
} catch (e) {
r1 = 0;
}
try {
r2 = arg2.toString().split(".")[1].length;
} catch (e) {
r2 = 0;
}
n1 = Number(arg1.toString().replace(".", ""));
n2 = Number(arg2.toString().replace(".", ""));
return (n1 / n2) * Math.pow(10, r2 - r1);
}
- 访问地址报错
java.net.UnknownHostException无法打开页面: 需要在服务器配ip 域名: vi /etc/hosts 增加一行 ip 计算机名(输入hostname查计算机名) 10.java环境正确的配置没有起效,重启系统能解决。 11.mysql的配置文件my.ini可能在C:\ProgramData\MySQL\MySQL Server 5.7下
|