若依代码生成使用教程
生活随笔
收集整理的這篇文章主要介紹了
若依代码生成使用教程
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
目錄
- 若依代碼生成
- 實例演示中的彈框
若依代碼生成
1.先在若依數(shù)據(jù)庫里建好庫并且給庫名備注一下,方便在若依上看,怎么備注看我這個博客
https://blog.csdn.net/Andrew0219/article/details/118728251
2.打開若依-系統(tǒng)工具-代碼生成-導(dǎo)入
3.編輯-修改里面的信息
4.生成代碼-打開生成壓縮包,把里面的sql文件在數(shù)據(jù)庫再運行一次
5.導(dǎo)入main
6.先給導(dǎo)入的項目xml添加依賴
7.如果你是跟我一樣,即創(chuàng)建的ruoyi-book和ruoyi-admin并列
那么在admin的pom.xml里添加上依賴
8.在總的pom.xml添加依賴
<dependency><groupId>com.ruoyi</groupId><artifactId>ruoyi-book</artifactId><version>${ruoyi.version}</version></dependency><modules>// 這里也加上book<module>ruoyi-admin</module><module>ruoyi-book</module></modules>9.Build Project部署一下,不然會404
10 運行這時候應(yīng)該是成功了
實例演示中的彈框
在html頁面下link需要的css文件
<link th:href="@{css/bootstrap.min.css}"> <link th:href="@{css/main/animate.min.css}">去bootstrap4尋找對應(yīng)的代碼,因為若依使用的就是bootstrap
<!-- Button trigger modal --> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">Launch demo modal </button><!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog"><div class="modal-content animated flipInY"><div class="modal-header"><h5 class="modal-title" id="exampleModalLabel">Modal title</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body">...</div><div class="modal-footer"><button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button><button type="button" class="btn btn-primary">Save changes</button></div></div></div> </div>即可生成效果
總結(jié)
以上是生活随笔為你收集整理的若依代码生成使用教程的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: win7计算机不显示dvd,win7系统
- 下一篇: C51(蓝牙,红外)智能遥控小车