admin管理员组文章数量:1794759
intellij idea cannot resolve property under construction in mybatis
IntelliJ offers a very intelligent experience by giving you such a relevant suggestion in every context. However, in some parts, you need to configure them.
Our project / product are maven-based and we used spring framework. The spring configuration is in XML file. We discover that IntelliJ unable to refer to property or annotated beans that you declared under test/resources directory. Note that this is not happen to the configs file under src/resources. For example, you’ll see a warning on ${db.dev.url} which tells you the key cannot be resolved.
Maven test folder structure
Property cannot be resolved
SolutionFor quick fix, what you can do is to include all your spring configs under test directory in your IntelliJ project structure.
IntelliJ project structure
XML based configuration
本文标签: resolveideaIntelliJmybatisConstruction
版权声明:本文标题:intellij idea cannot resolve property under construction in mybatis 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686508701a75503.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论