警告:mysql
No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu (Alt+Enter). more... (Ctrl+F1)sql
SQL dialect is not configured. PostgreSQL, SQL Server match best. more... (Ctrl+F1)数据库
这是两个警告,首先咱们解决一个警告:app
File -> setting 搜索inspections,再搜索sql,找到SQL dialect detection去掉勾,而后apply ->okide
这个时候咱们发现只有一个警告了this
如今咱们解决最后一个警告:,点开右上角的Database,我这里用的是mysql示例,这里不用填写mysql的数据库,用户名,密码什么的,直接apply,而后ok,并不影响启动项目时的mysql链接,mysql的链接该在application.properties或application.yml中怎么配就怎么配:code
这样就没有警告了:blog
把项目关掉再开启也仍是没有警告了,写完收工io