System.out.println(postDao.retrieve(1).getPreview());
}
public void testB() throws Exception {
ApplicationContext context = new ClassPathXmlApplicationContext("/config.xml");
PostService postService = (PostService) context.getBean("postService");
Post post = new Post();
post.setContent("内容");
post.setTitle("标题");
post.setPreview("预览");
post.setModificationDate(new Date());
post.setCreationDate(new Date());
post.setType(PostType.NEWS);
postService.createPost(post);
System.out.println(postService.getPost(post.getId()).getContent());
}