先到供应商成本表找到所有的子流程 t_vendor_first_leg_cost,t_vendor_last_mile_cost 在拿到对应的子流程去预计路由表查询对应的路由 t_waybill_route_expected 找到对应的预计路由再到头(尾)供应商成本表匹配数据,对应的起点-终点,确定 ...
分类:
其他好文 时间:
2018-07-31 13:31:38
阅读次数:
141
@Controller:修饰class,用来创建处理http请求的对象 @RestController:Spring4之后加入的注解,原来在@Controller中返回json需要@ResponseBody来配合,如果直接用@RestController替代@Controller就不需要再配置@Re ...
分类:
编程语言 时间:
2018-07-29 16:26:25
阅读次数:
175
1、在server节点的配置文件/etc/nomad/server.hcl添加启用acl,如下:server{enabled=truebootstrap_expect=1}acl{enabled=truetoken_ttl="30s"policy_ttl="60s"}配置添加完成后重启nomad服务:servicenomadrestart2、生成初始令牌启用
分类:
其他好文 时间:
2018-07-27 16:14:52
阅读次数:
202
1.使用密钥 ssh-keyssh -i .ssh/*.key root@<ip_addr> 2.使用sshpass 安装 rpm 包:yum install sshpass 配置文件: 3.expect 例1: 例2: 例3: -EOF 这里不加-的话下面的EOF必须要顶头 例4: ...
分类:
系统相关 时间:
2018-07-24 23:43:33
阅读次数:
215
String to Integer (atoi) 比较正统的一道题,基石系列。 第1次提交 import time class Solution: def __init__(self): self.INT_MAX=2 31 1 self.INT_MIN= 2 31 def myAtoi(self, ...
分类:
其他好文 时间:
2018-07-24 20:26:40
阅读次数:
192
响应报文的状态码 状态码用来告诉HTTP客户端HTTP服务器是否产生了预期的response。状态码总共只有三位,第一位表示状态类别,总共分五种。 (1) 1xx: 是进度通知类状态,意思就是说“请求我已经收到了,或你的请求我正在处理”。 (2) 2xx: 表示“你的请求我已经成功处理了”。 (3) ...
分类:
其他好文 时间:
2018-07-24 17:36:44
阅读次数:
275
1.在eclipse中安装tomcat8.5时,报错: The Apache Tomcat installation at this directory is version 8.5.6. A Tomcat 8.0 installation is expected. 2.解决办法: Windows中 ...
分类:
Web程序 时间:
2018-07-23 19:51:49
阅读次数:
1049
python 在内存中读写:StringIO / BytesIO python 2.7版本问题很多,使用python3可以解决
分类:
编程语言 时间:
2018-07-23 18:39:20
阅读次数:
404
一、expect脚本同步文件1、vi1.expect内容如下:#!/usr/bin/expectsetpasswd"123456"spawnrsync-avroot@192.168.1.31:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"$passwd\r"}}expecteof#expecteof的作用是等待脚本中的命令
分类:
其他好文 时间:
2018-07-23 11:18:57
阅读次数:
148
一、expect脚本同步文件实例4:自动同步文件[root@linux-01sbin]#vi4.expect#!/usr/bin/expectsetpasswd"123456"spawnrsync-avroot@192.168.238.130:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}&quo
分类:
其他好文 时间:
2018-07-23 10:57:09
阅读次数:
182