背景说明:在tomcat中发布应用,最简单的办法就是放在webapps中,简单省事!但是也有弊端,就是如果其下有多个应用,那么我们不得不加上应用名称,这就有点不方便了。现在经常用nginx做前端,反向代理到tomcat,用域名直接访问应用,省略tomcat端口及应用名称。这个时候就需要我们在一个to... ...
分类:
其他好文 时间:
2020-03-10 11:49:01
阅读次数:
58
Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on b ...
分类:
其他好文 时间:
2020-03-09 20:52:34
阅读次数:
49
1 """ 2 Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. 3 get(key) ...
分类:
系统相关 时间:
2020-03-06 22:05:50
阅读次数:
100
test_ConsumePower_everyYear #能耗管理 能耗数据 车间每年耗电 ${url} Set Variable https://api-iot.hang-shu.com/v1/DYS/repEnergy/devGroupConsumption?begin=2018&end=202 ...
分类:
其他好文 时间:
2020-03-06 14:52:10
阅读次数:
56
一、object类的源码 python版本:3.8 class object: """ The most base type """ # del obj.xxx或delattr(obj,'xxx')时被调用,删除对象中的一个属性 def __delattr__(self, *args, **kwar ...
分类:
编程语言 时间:
2020-03-06 01:54:03
阅读次数:
86
ARM-CM3创建任务、开启调度器、任务调度的整个流程: 【创建任务】 创建任务控制块。为任务申请空间并创建一个任务控制块NewTCB; 申请任务栈空间。为任务申请一块栈空间,并将起始地址存储到NewTCB.pxStack中; 初始化任务相关参数。将任务名、优先级和相关列表项等存放到任务控制块; 初 ...
分类:
其他好文 时间:
2020-03-04 21:15:31
阅读次数:
99
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure.find ...
分类:
其他好文 时间:
2020-03-04 09:16:12
阅读次数:
75
1.下载maven:https://maven.apache.org/ 2.配置环境变量: 3.打开settings.xml 配置本地仓库和中央仓库(国内设置成阿里云) <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apach ...
分类:
其他好文 时间:
2020-03-03 12:34:50
阅读次数:
96
这个问题多半是因为引用传递参数引起的,解决办法一是修改代码不使用引用传递。 array_shift(explode(' ', $tag)); PHP5.3以上默认只能传递具体的变量,而不能通过函数返回值传递。 $tagArr = explode(' ', $tag); $tag_sel = arra ...
分类:
Web程序 时间:
2020-03-03 10:41:14
阅读次数:
84
接口隔离原则的英文翻译是“ Interface Segregation Principle”,缩写为 ISP。 Robert Martin 在 SOLID 原则中是这样定义它的: “Clients should not be forced to depend upon interfaces that ...
分类:
其他好文 时间:
2020-03-02 17:42:38
阅读次数:
67