当前位置:网站首页>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 )
边栏推荐
- Randomly generate 10 (range 1~100) integers, save them to the array, and print the array in reverse order. And find the average value, the maximum value and the subscript of the maximum value, and fin
- 如何将一个域名解析到多个IP地址?
- Synchronized and volatile
- 3dslicer introduction and installation tutorial
- El expression improves JSP
- After three years of software testing at Tencent, I was ruthlessly dismissed in July, trying to wake up my brother who was paddling
- 在进行自动化测试,遇到验证码的问题,怎么办?
- Victoriametrics single node of kubernetes
- win10搭建flutter环境踩坑日记
- The automation testing post spent 20K recruiting, but in the end, there was no suitable one. Both fresh students are better than them
猜你喜欢

The third day of Xiaobai programmer

Ts:typera code fragment indentation display exception (resolved) -2022.7.24

如何实现一个App应用程序,限制用户时间使用?

How to resolve a domain name to multiple IP addresses?

Xiaobai programmer the next day

3dslicer import cone beam CT image

After three years of software testing at Tencent, I was ruthlessly dismissed in July, trying to wake up my brother who was paddling

Xiaobai programmer's first day

Smart S7-200 PLC channel free mapping function block (do_map)

Three ways to allocate disk space
随机推荐
TS:typora代码片段缩进显示异常(已解决)-2022.7.24
Selenium basic use and use selenium to capture the recruitment information of a website (continuously updating)
How is it most convenient to open an account for stock speculation? Is it safe for online account managers to open an account
【数据库学习】Redis 解析器&&单线程&&模型
淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??
[assembly language 01] basic knowledge
SQL中in的用法 DQL 查询
Minor GC 和 Full GC 有什么不同呢?
Smart S7-200 PLC channel free mapping function block (do_map)
Formal parameters, arguments and return values in functions
Acwing 866. determining prime numbers by trial division
3day
JS timer and swiper plug-in
Imitation Tiktok homepage interface
torchvision
TFrecord写入与读取
3dslicer import cone beam CT image
MySQL - subquery - column subquery (multi row subquery)
Three ways to allocate disk space
聚名十年,说出你的故事,百万豪礼等你拿