我正在使用Windows .bat脚本,我设置JAVA_HOME为C:/Program Files/Java/jdk1.6.0_32
当我执行时java -version,它仍然显示1.3
我怎样才能解决这个问题?我究竟做错了什么?
我有以下课程:
public class A{
List<AA> aaList;
public A(List<AA> aaList){
this.aaList = aaList;
}
//getters and setters + default constructor
public class AA {
String aaString;
public AA(String aaString){
this.aaString = aaString;
}
//getters and setters + default constructor
}
}
Run Code Online (Sandbox Code Playgroud)
我希望有两个同类的对象,让我们说:
A a = new A(Arrays.asList(new A.AA(null)));
A a2 = new A(Arrays.asList(new A.AA("test")));
Run Code Online (Sandbox Code Playgroud)
当我映射a到时a2,a2应该保留,test因为a有一个null.
我该如何配置Orika?
我尝试过类似的东西:
mapperFactory.classMap(A.AA.class, A.AA.class)
.mapNulls(false)
.byDefault()
.register();
mapperFactory.classMap(A.class, A.class)
.mapNulls(false)
.customize(new CustomMapper<A, …Run Code Online (Sandbox Code Playgroud) 为什么这不起作用?我不确定我做错了什么.我确定jquery正在页面上工作.
谁能帮我?提前致谢
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/derweco.css"/>
<script type="text/javascript" src="scripts/jquery-2.1.0.js"></script>
<script type="text/javascript">
$('#numbers').change(function(){
alert('other value');
});
</script>
</head>
<body>
<div id="home">
<select id="numbers">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) 我有以下(简化)代码:
$("select").change(function(){
<%String lookupcode = "test";%>
var code= <%=lookupcode%>;
alert(code);
}
Run Code Online (Sandbox Code Playgroud)
这段代码出了什么问题,他为什么不提醒代码呢?
当我尝试这个简单的脚本时:
#!/bin/bash
#append csv
FILES= /home/stef/test/*
for f in $FILES do
cat $f >> ~/test.txt done
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
./append.sh: line 4: /home/stef/test/test2.txt: Permission denied.
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?