Home > Java > javaTutorial > body text

How to solve the problem that the pom file icon of Springboot idea is incorrect

王林
Release: 2023-05-23 09:31:05
forward
2872 people have browsed it

    The idea pom file icon is wrong

    I encountered a strange phenomenon today, as shown below

    Springboot idea之pom文件图标不对问题怎么解决

    # #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:

    Springboot idea之pom文件图标不对问题怎么解决

    The solution is as follows

    Right-click the pom file

    Springboot idea之pom文件图标不对问题怎么解决

    After that, look at the icon below: it will change back.

    Springboot idea之pom文件图标不对问题怎么解决

    Solution to the problem that the sub-project pom file does not display the "m" icon

    Discovered problem

    While 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 problems

    2. I thought the mapper.xml file was not configured. After configuring mapper.xml, it still didn’t work.

    Discovered the problem

    Finally 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 story

    Problem Solving

    Springboot idea之pom文件图标不对问题怎么解决

    Sub-project pom After the file icon returns to normal, the @Mapper annotation can also be used normally

    Note:

    When a problem occurs and the corresponding line cannot be solved, you can try Solve problems from a global perspective

    The 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!

    Related labels:
    source:yisu.com
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template