使用Mybatis-Generator自动生成Dao、Mapping文件

下载mybatis-generator
https://github.com/mybatis/generator/releases
下载数据库对应的驱动
https://mvnrepository.com/
使用Mybatis-Generator自动生成Dao、Mapping文件_第1张图片

新建generatorConfig.xml文件




    
    
    
	    
            
            
        
        
        
        
        
            
        
        
        
            
            
        
        
        
            
        
        
        
            
        
        
        

打开Git命令行

java -jar mybatis-generator-core-1.3.7.jar -configfile generatorConfig.xml -overwrite

你可能感兴趣的:(工具)