当前位置:网站首页>工作中遇到的一些问题
工作中遇到的一些问题
2022-07-17 05:19:00 【happy_sam】
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下
边栏推荐
- Introduction to basic knowledge of Minio
- Decorate Apple Tree
- Common serial communication UART seen from pictures
- WebService接口的创建与实现
- [force buckle] copy the linked list with random pointer
- What kind of deep learning is most suitable for your enterprise?
- Longest bracket match (linear DP)
- Salgaze: personalized gaze estimation using visual saliency
- [antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique.....
- 2022/07/10 第五小组 丁帅 学习笔记 day03
猜你喜欢

Cours de mathématiques de base 2 Fonction Euler, écran linéaire, élargissement de l'Europe

2022/07/10 group 5 Ding Shuai's study notes day03

Solve cannot read properties of null (reading 'pickalgorithm')

Using VOR depth estimation to solve the problem of target ambiguity in three-dimensional gaze interaction

Résoudre le problème de l'ambiguïté de la cible dans l'interaction de fixation 3D par l'estimation de la profondeur vor
![[detailed tutorial installation] [configuration] auxiliary plug-ins about eslint in vscode](/img/d4/31272772b96d3e2f702da74478fd95.png)
[detailed tutorial installation] [configuration] auxiliary plug-ins about eslint in vscode

使用候选选择从人类注视中学习视频显著性

2022/07/10 第五小组 丁帅 学习笔记 day03

Learning video saliency from human gaze using candidate selection
![[force buckle] symmetric binary tree](/img/a4/31e936fb242aa8a3243ea257f5fd29.png)
[force buckle] symmetric binary tree
随机推荐
大龄程序员都去哪了?
EOG based eye movement detection and gaze estimation for an asynchronous virtual keyboard
Common serial communication UART seen from pictures
BusyBox 1.21.1 有udpsvd功能 可以编译成功 不干涉本机busybox方法
Typescript learning
Unity2D学习 Fox Game制作 过程1:基本的游戏角色控制,动画效果,镜头控制,物品收集,bug优化
Leetcode tree
js变量提升
Baby Ehab Partitions Again(dp,构造,位运算)
【力扣】对称二叉树
三维凝视估计,没有明确的个人校准2018
[antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique.....
量子三体问题: 数值计算概述
有依赖的背包,狭义(二进制枚举),广义(树形dp)
數學基礎課2_歐拉函數,線性篩,擴歐
Acwing第57场周赛(AK)
Acwing daily question three thousand five hundred and eleven
Qtss constant
有线电视网(树上分组)
[Niuke] traversal of binary tree