The configuration of the database should be as follows:
<Property name = "hibernate. Connection. url"> JDBC: sqlserver: // 127.0.0.1: 1433; databasename = shopping; </property>
Shopping does not require quotation marks.
After the change, it was run that there was a syntax error near the user, and it took another half a day to know that the user was a keyword reserved by sqlserver, so I changed the table name to users,
In this way, I can confirm that I can connect to the database, but a new problem occurs. Modify the error again and change the ID attribute "ID" in the users table to "yes ", run the command to show that when identity_insert is set to off, explicit values cannot be inserted into the identifiers column of the table. This should be a problem in my database design. Unfortunately, I have not learned the database and the problem is to be solved.