spring boot 整合lombok+tkmapper+mybatis-generator

 
1.lombok
   org.projectlombok
   lombok
   true
2.mybatis-generator
   org.mybatis.generator
   mybatis-generator-maven-plugin
   1.3.2
   
      ${basedir}/src/main/resources/generator/generatorConfig.xml
      true
      true
   
   
      
         mysql
         mysql-connector-java
         5.1.42
      
      
         tk.mybatis
         mapper
         3.4.0
      
      
         com.chrm
         mybatis-generator-lombok-plugin
         1.0-SNAPSHOT
      
   
 
2.1 generatorConfig.xml文件
 
        PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
        "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 
    
 
    
        
        
 
        
            
        
        
        
            
        
 
        
                        connectionURL="jdbc:mysql://118.31.250.124/qts_cpt"
                        userId="root"
                        password="1Henniubi">
        
 
        
 
        
 
        
 
        
            
        
    
 
3.tkmapper
   tk.mybatis
   mapper-spring-boot-starter
   2.0.4
 

转载于:https://www.cnblogs.com/nightOfStreet/p/9949691.html

你可能感兴趣的:(spring boot 整合lombok+tkmapper+mybatis-generator)