public static void getUserArticles(int userid) {
		SqlSession session = sqlSessionFactory.openSession();
		try {
			UserDao userDao = session
					.getMapper(UserDao.class);
			List<Article> articles = userDao.getUserArticles(userid);
			for (Article article : articles) {
				System.out.println(article.getTitle() + ":"
						+ article.getContent() + ":作者是:"
						+ article.getUser().getUserName() + ":地址:"
						+ article.getUser().getUserAddress());
			}
		} finally {
			session.close();
		}
	}