当前位置:网站首页>If it is modified according to the name of the framework module
If it is modified according to the name of the framework module
2022-07-25 22:20:00 【Steal the moon by riding the wind】
Hello everyone , I steal the moon by riding the wind . I'm glad it's time to share the learning achievements with you again . This time, let's talk about the learning of modifying the module name according to the framework .
In the process of building the project , Use the ruoyi framework as the basic version to quickly build your own business system , Reduce the manpower of preliminary preparation , financial , Material resources and so on , I believe many enterprises are using this framework . In ruoyi Group , Some friends also mentioned , In the existing ruoyi framework system , If you modify the module name , Name the project module with your own project name ? below , I will analyze my experience and operation steps .
Go directly to the last rendering

First , download RuoYi-Vue edition ,RuoYi-Vue: be based on SpringBoot,Spring Security,JWT,Vue & Element Before and after the separation of rights management system , It also provides Vue3 Version of (gitee.com)
Use Idea Open the project , I am here idea2019 edition . If different versions are used , Causing problems , Welcome to leave a message , Discuss together .
First step , Modify the module name


It is suggested to choose Rename module and directory, such , Not only the module name has been modified , The physical folder is also modified , Pictured

Modify the module name in turn ruoyi-admin,ruoyi-common,ruoyi-framework ,ruoyi-generator,
ruoyi-quartz, ruoyi-system,
the reason being that pom project , So it needs to be modified pom Configuration of , Modify the project first pom file ,

The following is the specific modification of each module : All modules used need , It depends on your own situation


After modifying the project pom After the document , Need modification Each module Of pom file , Here is only one module as an example , Other modules , Friends, revise it by themselves , If you don't understand or have questions, you can leave a message , thank you . for example mytest-common modular ,

Other modules are followed by analogy .
After modification , Need to re Reimport

If it's still red , You need to check the local maven Warehouse

Open one at will , Check the version number

Everything else is OK , Recompile it . Compile successfully , You can run it together to see the effect .
At this time, there may be several folders under the original directory , for example

Next , open File->Project Sstructure , The inside of Test output path, Change it to module name , Then delete the extra folders .

The final folder directory is as follows :

Only this and nothing more , Modifying the module name is complete .
Focus on , Focus on , Focus on , Important things are to be repeated for 3 times !!! If you modify the package name .
however , Some friends may ask , If you want to modify the package name inside ? What if it is modified ? below , Let's modify the package name , Make the project more like your own , ha-ha !!! For example, the picture below , Contains a com.ruoyi, also RuoYiApplication And so on

Here are the steps , It's also done in a few steps .
First , This modification package name , Need to replace all , Select the package name com.ruoyi


After modification , Will report a mistake , The tips are as follows :

This is not found mapper file , Because there is also a package name com.ruoyi, So it needs to be changed to com.mytest
Hold down Ctrl+Shift+R, Inquire about com.ruoyi, Find meaning mapper Click in the document with the words .

After finishing , Rerun , Or an error , as follows :

Here is mainly scanning mapper When you file , The package name is not modified and filtered , stay application.yml

Come here , Successful launch !!!

then , Open the front end , Look at the effect

unfortunately , The verification code did not come out successfully , But a prompt pops up , Follow this prompt , Go find the file to modify .
Press and hold again Ctrl+Shift+R, Inquire about com.ruoyi

Find the key words ,KeptchaTextCreator, Take this com.ruoyi->com.mytest,
Start the background again api, The verification code appears perfectly , No problem logging in , Click the function inside to operate normally . This module name is modified , And the modification of package name ok La . Favorite friend , Please give me a compliment + Collection , thank you .

In order to avoid other problems in the future , It is suggested that all relevant com.ruoyi-->com.mytest( there mytest It's the name of your project )
边栏推荐
- 手机端微信发朋友圈功能测试点总结
- 开户就可以购买收益在百分之六以上的理财产品了吗
- Redis foundation 2 (notes)
- Redis memory elimination mechanism?
- TFrecord写入与读取
- What is the difference between minor GC and full GC?
- 完啦,上班三个月,变秃了
- Arcgis10.2 configuring postgresql9.2 standard tutorial
- C language: random generated number + selective sorting
- 三菱FX PLC自由口RS指令实现MODBUS通讯
猜你喜欢

Basic principle of torque motor control

Application of breakthrough thinking in testing work

Having met a tester with three years' experience in Tencent, I saw the real test ceiling

The technical aspects of ByteDance are all over, but the result is still brushed. Ask HR why...

The third day of Xiaobai programmer

About vscode usage+ Solutions to the problem of tab failure

4day

Use of hyperlinks

TFrecord写入与读取

Summary of function test points of wechat sending circle of friends on mobile terminal
随机推荐
SQL中in的用法 DQL 查询
3dslicer introduction and installation tutorial
Don't vote, software testing posts are saturated
ML-Numpy
What have I experienced to become a harder tester than development?
Tfrecord write and read
The third day of Xiaobai programmer
Call of addition, subtraction, multiplication and division of integer type only
Victoriametrics single node of kubernetes
三菱FX PLC自由口RS指令实现MODBUS通讯
D3.js 学习
What is redis? Briefly describe its advantages and disadvantages
Using simple scripts to process data in 3dslicer
Ts:typera code fragment indentation display exception (resolved) -2022.7.24
On the difference between break and continue statements
谷歌分析UA怎么转最新版GA4最方便
在腾讯干软件测试3年,7月无情被辞,想给划水的兄弟提个醒...
淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??
The technical aspects of ByteDance are all over, but the result is still brushed. Ask HR why...
Arcgis10.2 configuring postgresql9.2 standard tutorial