1024programmer News The .xml configuration file of MyBatis is not in the target (compiled) solution

The .xml configuration file of MyBatis is not in the target (compiled) solution

1. Make sure the folder has this logo

2. Make sure the pom.xml folder has this label (the function is to copy the required suffix name file in the configuration directory to the target)

src/main/java

**/*.properties
**/*.xml

false

(The following two situations are sometimes small bugs of IDEA)

3. Still unsuccessful when both 1 and 2 are guaranteed to be correct: Click Right toolbar Maven–>Lifecycle–>clean (clear target)–compile (recompile) and then run

4.Build->Rebuild Project (compulsory project compilation ) and run again

5. Manually copy and copy the file to be compiled to the location of the target

6.File—>Invalidate Caches /Restart…(invalid cache)—>Invalidate and Restart (clear the previous cache of idea, restart idea)

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/the-xml-configuration-file-of-mybatis-is-not-in-the-target-compiled-solution/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索