idea的mybatis的xml文件老是報警告SQL dialect is not configured

警告: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

相關文章
相關標籤/搜索