逆向工程实现

在pom.xml增加以下插件:


  zsxt
  
    
      org.mybatis.generator
      mybatis-generator-maven-plugin
      1.3.2
      
        true
        true
      
    
  

datasource.properties

jdbc.driver = com.mysql.jdbc.Driver
jdbc.url = jdbc:mysql://localhost:3306/shuda
jdbc.username = root
jdbc.password = root
jdbc.driverLocation=E:/maven/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar

generatorConfig.xml





    
    

    

    

        
        
            
            
        

        
        
        


        
        
            
        


        
        
        
            
            
            
            
            
            
            
            
        

        
        
        
            
        

        

        
        
        
            
            
        


        

log4j.properties

log4j.rootLogger=DEBUG, Console
#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
log4j.logger.java.sql.ResultSet=INFO
log4j.logger.org.apache=INFO
log4j.logger.java.sql.Connection=DEBUG
log4j.logger.java.sql.Statement=DEBUG
log4j.logger.java.sql.PreparedStatement=DEBUG
图片.png

你可能感兴趣的:(逆向工程实现)