写个Mapper文件也要像输入验证码一样一堆干扰线嘛

IntelliJ IDEA 打开 MyBatis的mapper文件时,总有黄色的警告。警告有No data sources configureSQL dialect is not configured,按照下列步骤操作即可消除。

  • Settings
  • Editor
  • Inspections
  • 右侧搜索SQL
  • 取消No data sources configured勾选
  • 取消SQL Dialect detection勾选
  • Apply
  • OK