Mybatis generator 逆向生成程式碼
簡單介紹
本文介紹用mybatis逆向生成javaben dao介面
1.建立maven專案 建立相應的包
附上專案建立完成的圖片
然後在pom.xml檔案裡面引入需要的jar的依賴
<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 http://maven.apache.org/maven-v4_0_0.xsd">;
<modelVersion>4.0.0</modelVersion>
<groupId>com.xx</groupId>
<artifactId>Mybaits</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Mybaits Maven Webapp</name>
<url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>