How does IDEA modify the java project name

When I first started learning programming, I wrote a lot of codes that did not meet the specifications. Today I checked the code I wrote and found that the first word of many method names is not lowercase, and the project name is not lowercase.
The compiler I use is IDEA, how to modify the project name? Please see below. (I changed myPro to mypro)

1. Find the modules.xml file under .idea
Insert picture description here
2. Find the project path locally, modify the project name
Insert picture description here
3. Then open IDEA again.

To sum up the problems I encountered:
(1) Click the project name directly at the beginning to modify the name. Then see that the D drive showing the path is still called myPro. So I went directly to the D drive and changed the name. After opening, I found that the project could not run . So it was impossible to change it back.
So I deleted the local .idea and re-imported this project.

Insert picture description here
(2) Later, I deleted mypro.iml and .idea. After changing back, the project is normal.
But there is a class that says that the jar package is missing : import org.apache.poi.hssf.usermodel. *;
Finally found my local poi-3.11 and re-imported it, ok

I think the reason is: I changed the name in the first step, but did not modify the content of mypro.iml. Later, mypro.iml was deleted, and the poi jar package needs to be re-referenced. Because I think the content in this configuration is like this
Insert picture description here

Published 22 original articles · praised 5 · visits 4310

Guess you like

Origin blog.csdn.net/weixin_42231208/article/details/100858641