摘要:
foreach循环遍历 var定义存放取出来的元素 items获得要遍历的对象 阅读全文
摘要:
springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:springMVC.xml 1 springM... 阅读全文
摘要:
SELECT * from humor ORDER BY rand() limit 1SELECT * FROM `user` WHERE USER_ID >= (SELECT floor(RAND() * (SELECT MAX(USER_ID) FROM `user`))) ORDER BY... 阅读全文
摘要:
// 打开会话 Session session = HibernateUtil.getSession(); // 开启事务 Transaction tx = null; Wine wine; try { tx = session.beginTransaction(); Strin... 阅读全文