Home >Java >javaTutorial >How to solve the problem that the pom file icon of Springboot idea is incorrect
I encountered a strange phenomenon today, as shown below
# #The original pom icon should have an m, but now it has become an xml file directly. There is no Maven Projects on the right, see the picture below: The solution is as followsRight-click the pom file After that, look at the icon below: it will change back. Solution to the problem that the sub-project pom file does not display the "m" iconDiscovered problemWhile debugging the microservice payment module , there was a problem that the @Mapper annotation could not be found, and the following troubleshooting process was carried out: 1, I thought mybatis was not introduced, so I looked at the pom file, and the result was that it had been introduced, so it was not Mybatis did not introduce problems2. I thought the mapper.xml file was not configured. After configuring mapper.xml, it still didn’t work.Discovered the problemFinally found my pom The file mark is wrong. The icon displayed in the sub-project's pom file is not marked with m, so there is the following storyProblem Solving Sub-project pom After the file icon returns to normal, the @Mapper annotation can also be used normallyNote:
When a problem occurs and the corresponding line cannot be solved, you can try Solve problems from a global perspectiveThe above is the detailed content of How to solve the problem that the pom file icon of Springboot idea is incorrect. For more information, please follow other related articles on the PHP Chinese website!