這篇文章主要講解了“如何使用screw一鍵生成數(shù)據(jù)庫文檔”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“如何使用screw一鍵生成數(shù)據(jù)庫文檔”吧!
網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、成都小程序開發(fā)、集團企業(yè)網(wǎng)站建設(shè)等服務(wù)項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了布爾津免費建站歡迎大家使用!
配置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>數(shù)據(jù)庫文檔生成</description> <!--版本 --> <version>1.0.0</version> <!--標題 --> <title>數(shù)據(jù)庫文檔</title> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>
配置數(shù)據(jù)源
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
IDEA中運行
Eclipse中運行
處理POM配置文件中的錯誤(也可以不管這個錯誤,直接運行)
運行
在Goals中輸入:screw:run
感謝各位的閱讀,以上就是“如何使用screw一鍵生成數(shù)據(jù)庫文檔”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對如何使用screw一鍵生成數(shù)據(jù)庫文檔這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!
當(dāng)前名稱:如何使用screw一鍵生成數(shù)據(jù)庫文檔
文章起源:http://muchs.cn/article18/jiosdp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供做網(wǎng)站、域名注冊、云服務(wù)器、Google、商城網(wǎng)站、軟件開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)