@Override is not allowed when implementing interface method

前端 未结 7 1409
难免孤独
难免孤独 2021-01-30 00:49

I have the problem mentioned in the title. You could say that this thread duplicates another one: How do I turn off error validation for annotations in IntelliJ IDEA?

Bu

7条回答
  •  粉色の甜心
    2021-01-30 01:18

    If you are using maven, add maven compiler plugin to the project's pom.xml file.

    
            
                
                    org.apache.maven.plugins
                    maven-compiler-plugin
                    3.1
                    
                        1.7
                        1.7
                    
                
            
        
    

    This solved the issue for me.

提交回复
热议问题