java - An existing project package name is similar to com.company..... How can I simply change the package name to com.test.....
欧阳克
欧阳克 2017-06-12 09:23:11
0
5
960

An existing project package name is similar to com.company..... How can I simply change the package name to com.test.....

If the project is a maven project, how should it be modified?

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(5)
曾经蜡笔没有小新

If you use intellij idea, right-click the package --> Refactor --> Rename, automatically modify the package and modify the references in the code

我想大声告诉你

Does the IDE have this kind of refactoring function?

If not, here is a batch replacement method:

find . | xargs -I file sed s/com.xxx/com.yyy/g -i file

findYou can add -name to filter java and xml files without writing mobile phone code.

学霸

ALT+SHIFT+R

習慣沉默

IDE Refactor

左手右手慢动作

Find the location of your project on your computer and double-click the folder name to modify it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!