Compile and install successfully with maven in IDEA, but error prompt still popup.
- Your local environment doesn’t have compilation error already
- it is caused by highlighting level
solution:Analyze->configure current File Analysis ->Syntax
right click -> analyze - > configure current…
- it is caused by code inspection
settings->Editor -> Code Style->Inspection
- it is probably because of reimport action
Maven Project->Project Name->right Click->reimport