Introducing the IIIF (International Image Interoperability Framework) APIs and some application cases to the Chinese academic libraries. 介绍国际图象互操作框架(IIIF) 的四个应用程序接口API协议和应用实例。
Introducing the IIIF (International Image Interoperability Framework) APIs and some application cases to the Chinese academic libraries. 介绍国际图象互操作框架(IIIF) 的四个应用程序接口API协议和应用实例。
11. Spring Framework
Spring Data for
SpringMVC
MongoDB
Spring Ecosystem Spring Ecosystem
Annotations for High-level
RESTful operation
12. Happy Codeing with Spring MVC
http://api.accesstaiwan.org/travel/entity?county=Taipei
Annotation 清楚乾淨的
Based Controller
ResponseBody
RESTful style
For JSON
13. Happy Coding with Spring Data Mongo
DBCollection coll = MongoDBFactory.getCollection(“mydb”,“mycollection”);
DBObject doc = new BasicDBObject();
doc.put("id", id);
DBObject dbObject = coll.findOne(doc);
Person person = new Person();
person.setId(dbObject.get(“id”).toString());
person.setFirstName(dbObject.get(“firstName”).toString());
person.setLastName(dbObject.get(“lastName”).toString());
person.setMoney(Double.valueOf(dbObject.get("money").toString()));
Query query = new Query(where("pid").is(id));
Person person =
mongoTemplate.findOne("mycollection", query, Person.class);