我正在开发基于 Spring Framework、MySQL、JPA 的 Java Web 应用程序。当我尝试将数据从 HTML 表单持久化到 SQL 数据库时遇到问题,然后我尝试调试和修复。我在用IntelliJ IDEA 旗舰版 2017.1。我发现错误:
无法解析列“product_name” 此检查控制是否
根据配置检查 Persistence ORM 注释
数据源
This is screenshot:
如何修复它?
For those who just want to disable this check, go to
Intellij IDEA -> Preferences -> Search "Unresolved database references in annotations" and uncheck it.
(macOS Mojave and Intellij Ultimate 2019.3)
This will disable the inspection and remove all the "Cannot resolve column…" errors on the @Column
annotations. Intellij will stop checking if the String column names exist in the database tables. Do it at your own risk.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)