10

xxl-job执行器注册失败

 3 years ago
source link: http://www.hechunbo.com/index.php/archives/394.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

xxl-job执行器注册失败.

可能是因为本机多个ip 地址,装了虚拟机的原因,导致回调的时候无法指定,

另外别的机器执行器上启动的时候指定了你的机器 Ip,

通常是因为机器ip被写死在代码中,被别的同事拉到.

启动的时候表现为

xxl-job, executor callback config fail

#或者
xxl  job  executor registry config fail  appname is null 

如果没有,检查你的执行器注册的地址是否正确.

java如何把json数组字符串转成list

List<T> list = null;
JSONArray entryArray = JSONObject.parseArray(params);
if ((null == entryArray) || (entryArray.isEmpty())) {
    return list;
}
list = entryArray.toJavaList(clzz);

js数组中判断某个值 是否存在

if(arr.index(target)==-1){
    //不包含有某数字
}

echart最大值,最小值设定完以后,导致间隔变大

用了splitnumber,splinline ,以及interval都不生效. ,需要调查下原因.

 min: functioon(value){
     return value.mix
 },
 max: functioon(value){
     return value.max
 },
splitlinue:function(value){
    inerval:(value.max-value.min)/3  //这里这样设置不生效,需要调查下原因. 
    
}
//interval: 1000,

vue中列表中如果为0则不显示

直接 在ul中判断 相关值为0,不用去数据源改数据

什么是spel表达式

SpEL(Spring Expression Language),即Spring表达式语言

可以在运行时查询和操作数据,尤其是数组列表型数据,因此可以缩减代码量,优化代码结构

#1.用在java注解中
@Value("#{表达式}")
public String arg;

#2.用在xml中
<bean id="xxx" class="com.java.XXXXX.xx">
    <!-- 同@Value,#{}内是表达式的值,可放在property或constructor-arg内 -->
    <property name="arg" value="#{表达式}">
</bean>

#3. ExpressionParser解析表达式
#创建ExpressionParser解析表达式
ExpressionParser parser = new SpelExpressionParser();
#表达式放置
Expression exp = parser.parseExpression("表达式");
#执行表达式,默认容器是spring本身的容器:ApplicationContext
Object value = exp.getValue();

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK