1.DATABASE TYPE: When establishing hibernate.cfg.xml, pop up a dialog, there is a Database Type, after selecting, it affects Dialect. Select a database type and generate the corresponding Diagect property in XML. For example, I selected MySQL, see the red code section. 2.Connection: First ensure that the project has already added a good Hibernate user library. After adding, you can assist the search, click Browse next to Driver Class, and type the DRIVER to find the full packet path of the corresponding class. The blue code part is the reflection of this option configuration. Hibernate.cfg.xml content:
session-factory> hibernate-configuration> 3.Add mapping reason: The function of this menu is to add a word