久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

如何使用screw一鍵生成數據庫文檔

159次閱讀
沒有評論

共計 2901 個字符,預計需要花費 8 分鐘才能閱讀完成。

這篇文章主要講解了“如何使用 screw 一鍵生成數據庫文檔”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著丸趣 TV 小編的思路慢慢深入,一起來研究和學習“如何使用 screw 一鍵生成數據庫文檔”吧!

一. screw 的配置

配置 pom 文件

?xml version= 1.0  encoding= UTF-8 ? 
 project xmlns= http://maven.apache.org/POM/4.0.0 
 xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance 
 xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd 
  modelVersion 4.0.0 /modelVersion 
  parent 
  groupId org.springframework.boot /groupId 
  artifactId spring-boot-starter-parent /artifactId 
  version 2.2.9.RELEASE /version 
  relativePath /   !-- lookup parent from repository -- 
  /parent 
  groupId com.bee /groupId 
  artifactId screw-demo /artifactId 
  version 0.0.1-SNAPSHOT /version 
  name screw-demo /name 
  description Screw Demo for Spring Boot /description 
  properties 
  java.version 1.8 /java.version 
  /properties 
  dependencies 
  dependency 
  groupId org.springframework.boot /groupId 
  artifactId spring-boot-starter-web /artifactId 
  /dependency 
  dependency 
  groupId org.springframework.boot /groupId 
  artifactId spring-boot-starter-test /artifactId 
  scope test /scope 
  exclusions 
  exclusion 
  groupId org.junit.vintage /groupId 
  artifactId junit-vintage-engine /artifactId 
  /exclusion 
  /exclusions 
  /dependency 
  dependency 
  groupId cn.smallbun.screw /groupId 
  artifactId screw-core /artifactId 
  version 1.0.4 /version 
  /dependency 
  /dependencies 
  build 
  plugins 
  plugin 
  groupId org.springframework.boot /groupId 
  artifactId spring-boot-maven-plugin /artifactId 
  /plugin 
  plugin 
  groupId cn.smallbun.screw /groupId 
  artifactId screw-maven-plugin /artifactId 
  version 1.0.4 /version 
  dependencies 
  !-- HikariCP -- 
  dependency 
  groupId com.zaxxer /groupId 
  artifactId HikariCP /artifactId 
  version 3.4.5 /version 
  /dependency 
  !--mysql driver -- 
  dependency 
  groupId mysql /groupId 
  artifactId mysql-connector-java /artifactId 
  version 8.0.20 /version 
  /dependency 
  /dependencies 
  configuration 
  !--username -- 
  username root /username 
  !--password -- 
  password 123456 /password 
  !--driver -- 
  driverClassName com.mysql.cj.jdbc.Driver /driverClassName 
  !--jdbc url -- 
  jdbcUrl jdbc:mysql://localhost:3306/db_mybatis /jdbcUrl 
  !-- 生成文件類型  -- 
  fileType HTML /fileType 
  !-- 打開文件輸出目錄  -- 
  openOutputDir false /openOutputDir 
  !-- 生成模板  -- 
  produceType freemarker /produceType 
  !-- 描述  -- 
  description 數據庫文檔生成 /description 
  !-- 版本  -- 
  version 1.0.0 /version 
  !-- 標題  -- 
  title 數據庫文檔 /title 
  /configuration 
  executions 
  execution 
  phase compile /phase 
  goals 
  goal run /goal 
  /goals 
  /execution 
  /executions 
  /plugin 
  /plugins 
  /build 
 /project

配置數據源
src/main/resources/application.properties

spring.datasource.url=jdbc:mysql://localhost:3306/db_mybatis?useUnicode=true characterEncoding=UTF-8 useSSL=false
spring.datasource.usename=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.xa.properties.useInformationSchema=true

二. 通過 Maven 插件運行 screw

IDEA 中運行

Eclipse 中運行

處理 POM 配置文件中的錯誤(也可以不管這個錯誤,直接運行)

運行

在 Goals 中輸入:screw:run

三. 生成數據庫各表的設計文檔

感謝各位的閱讀,以上就是“如何使用 screw 一鍵生成數據庫文檔”的內容了,經過本文的學習后,相信大家對如何使用 screw 一鍵生成數據庫文檔這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是丸趣 TV,丸趣 TV 小編將為大家推送更多相關知識點的文章,歡迎關注!

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-07-13發表,共計2901字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 攀枝花市| 介休市| 长垣县| 资中县| 舒城县| 洪雅县| 大港区| 岢岚县| 桃源县| 舞钢市| 五大连池市| 江都市| 镇宁| 阳新县| 庄河市| 和田市| 五大连池市| 沾益县| 江华| 谷城县| 新津县| 霍林郭勒市| 盈江县| 吉木萨尔县| 登封市| 惠来县| 石泉县| 会宁县| 沭阳县| 麻城市| 闸北区| 江山市| 兴城市| 大连市| 绥德县| 竹溪县| 昌黎县| 凤冈县| 南汇区| 弥渡县| 遵化市|