一、警告信息1
No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu (Alt+Enter). less… (Ctrl+F1) Inspection info: Prompts one to create a data source if there is none.
二、警告样图

三、解决警告1
需要我们连接数据库

但是发现,还有这个错误信息:
四、警告信息2
SQL dialect is not configured. SQL Server, Redshift, PostgreSQL match best. less… (Ctrl+F1)
Inspection info: Detects the best matching SQL dialect for files in dialect.
五、解决警告2

现在xml相关的sql语句已经变成浅绿色了.
六、警告信息3
XML tag has empty body less… (Ctrl+F1)
Inspection info: Reports empty tag body. The validation works in XML / JSP / JSPX / HTML/ XHTML file types.

七、解决告警3
将开合标签改成闭合标签即

八、解决重复代码警告

本文详细介绍了如何在集成开发环境中解决常见的SQL方言配置、数据源设置及XML标签体为空的警告信息,通过具体步骤指导读者消除这些警告,提升代码质量和开发效率。
2454

被折叠的 条评论
为什么被折叠?



