Annotation annotation = new Annotation(); annotation.setAuthor("John Doe"); annotation.setTimestamp(new Date()); manager.addAnnotation(annotation); List<Annotation> annotations = manager.queryAnnotations("author", "John Doe"); for (Annotation ann : annotations) { } database.driver = com.mysql.jdbc.Driver database.url = jdbc:mysql://localhost:3306/annotations database.username = admin database.password = password storage.path = /data/annotations storage.format = json


上一篇:
下一篇:
切换中文