JaceyRx / Examination_System

一个简单的教务查询系统(主要技术SpringMVC + Spring + Mybatis + Shiro + Bootstrap)
1.4k stars 526 forks source link

MyBatisGeneratorConfig.xml相应的配置工具类在哪里 #9

Open zhangyuhong516 opened 6 years ago

zhangyuhong516 commented 6 years ago

请问一下po包和mapper包下的类怎么生成的呢,MyBatisGeneratorConfig.xml相应的配置工具类在哪里,可以提供一下吗,感激不尽,我的qq1396766036

genghe123 commented 6 years ago

pom.xml

     <plugin>
            <groupId>org.mybatis.generator</groupId>
            <artifactId>mybatis-generator-maven-plugin</artifactId>
            <version>1.3.2</version>

            <configuration>
                <verbose>true</verbose>
                <overwrite>true</overwrite>
                <configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
            </configuration>

            <dependencies>
                <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>5.1.9</version>
                </dependency>
            </dependencies>
        </plugin>

generatorConfig.xml

zhangyuhong516 commented 6 years ago

谢谢你