Because the online test database is closed, you need to use a local database
Note: The SQL Server database is used at work
After modifying the configured yml file, restarting the project reported an error
Internet search: tell me that the configuration file is wrong when connecting to mysql
But hey, I want to connect to the SQL Server database
Then I searched again, and then I looked through the yml configuration file of SQL Server to find that mysql and sql server are different in local configuration.
driverClass: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://localhost:1433;DatabaseName=数据库名
username: sa
password: 123456
The local port number of mysql is 3306
The local port number of sql server is 1433
I have been using mysql before, and the sql server I used after this project is because of my shallow knowledge.