1. Screenshots of problems encountered
2. Reasons
I encountered this problem after updating the idea version. It was normal when starting the project in the old version. In the new version of my idea, resource is just a normal folder. Normally it should be a resource folder.
3. Solution
Set resource as the resource folder, right-click Mark Directory as->Resources Root, and restart.