Intellij无法理解SQL的字符串 [英] String of SQL doesn't understand in Intellij

查看:93
本文介绍了Intellij无法理解SQL的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家. 我正在制作一个玩具webapp.它使用Spring Boot和Mybatis. Mybatis映射器配置Java接口.我希望Intellij能理解SQL的字符串.但这不是.

everybody. I am making a toy webapp. It uses Spring Boot and Mybatis. Mybatis mapper configures Java Interface. I expect the string of SQL understands in Intellij. But It doesn't it.

我希望以下类似.如果它可以理解IntelliJ中的SQL,那么我就可以从工作中受益.

I expect a like below. If it understands SQL in IntelliJ I have a benefit for work.

我想知道如何设置.还是没有办法?

I want to know How to set for it. or no way?

谢谢.

推荐答案

您可以通过以下步骤激活此功能:

You can activate this feature with the following steps:

  1. 在您query上,按 Alt + Enter 键并选择以下选项:插入语言或参考:
  1. On you query press Alt + Enter keys and choose the option: Inject language or reference:

  1. 选择最适合您的语法,例如: SQL(SQL文件)

  1. 结果:

要禁用该功能,应按query上的 Alt + Enter 键,然后选择取消注入语言/参考

For disable that feature, you should press Alt + Enter keys on your query and choose Un-inject Language/Reference

这篇关于Intellij无法理解SQL的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆