Change-Id: I0000000000000000000000000000000000000000

Signed-off-by: lixiangrong <lixiangrong@pxene.com>
This commit is contained in:
lixiangrong 2016-03-11 14:39:10 +08:00
parent 46cea22176
commit c884479cf2
2 changed files with 18 additions and 7 deletions

View File

@ -116,7 +116,7 @@
<version>${servlet.version}</version> <version>${servlet.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- mybatis start --> <!-- mybatis start -->
<dependency> <dependency>
<groupId>org.mybatis</groupId> <groupId>org.mybatis</groupId>
@ -138,6 +138,11 @@
<artifactId>mybatis-generator-core</artifactId> <artifactId>mybatis-generator-core</artifactId>
<version>${mybatis.generator.core.version}</version> <version>${mybatis.generator.core.version}</version>
</dependency> </dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
</dependency>
<!-- mybatis end --> <!-- mybatis end -->
</dependencies> </dependencies>
<build> <build>

View File

@ -15,6 +15,7 @@ import java.util.Set;
import com.caucho.hessian.client.HessianProxyFactory; import com.caucho.hessian.client.HessianProxyFactory;
import net.sf.ezmorph.bean.MorphDynaBean;
import net.sf.json.JSONArray; import net.sf.json.JSONArray;
import net.sf.json.JSONObject; import net.sf.json.JSONObject;
import osc.git.eh3.readlogs.IReadLogs; import osc.git.eh3.readlogs.IReadLogs;
@ -159,13 +160,18 @@ public class TestCode {
// for (Method method : methods) { // for (Method method : methods) {
// System.out.println(method.getName()); // System.out.println(method.getName());
// } // }
Object dd = new Date(); // Object dd = new Date();
//
System.out.println(dd instanceof Date); // System.out.println(dd instanceof Date);
//
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
// System.out.println(sdf.format(dd));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); JSONObject groupAdxs = JSONObject.fromObject("{\"4ebdb328-5d4b-42e6-80c3-a6aaaecdcea1\":[\"1e03319c-425d-4a17-a6bf-eeec2f48db29\",\"1fed4171-9925-4834-aa7b-9b4d3a58841b\",\"ce579246-e707-4cb9-b982-88cad7944b92\"],\"9262cbe8-a9dc-4f4e-888b-cf3ffe65defd\":\"ce579246-e707-4cb9-b982-88cad7944b92\"}");
System.out.println(sdf.format(dd)); Set<String> keySet = groupAdxs.keySet();
for (Object object : keySet) {
System.out.println(groupAdxs.get(object).getClass().isArray());
}
} }
public static Long parseDate(String s) { public static Long parseDate(String s) {