日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

若依代码生成使用教程

發(fā)布時間:2023/12/20 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 若依代码生成使用教程 小編覺得挺不錯的,現(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添加依賴

<dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>com.ruoyi</groupId><artifactId>ruoyi-common</artifactId></dependency></dependencies>

7.如果你是跟我一樣,即創(chuàng)建的ruoyi-book和ruoyi-admin并列

那么在admin的pom.xml里添加上依賴

<dependency><groupId>com.ruoyi</groupId><artifactId>ruoyi-book</artifactId></dependency>

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">&times;</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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。