hibernate鏈接Mysql

環境:Intellj Idea,maven 1.maven repositor搜索org.hibernate添加到pom.xml 2.mysql新建表user[userid,username,password] 3.配置Hibernate.cfg.xml文件: 目錄結構如下:(ps:Hibernate.cfg.xml和實體關係配置文件User.hbm.xml放置在reources文件夾下) : 4
相關文章
相關標籤/搜索