springboot mybatis-generator 报错原因(转载)

报错:

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project demo: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate failed: Exception getting JDBC Driver: com.mysql.cj.jdbc.Driver -> [Help 1]

原因是:generator找不到jdbc的配置,所以在plugin添加JBDC配置就可以了。


            
                org.springframework.boot
                spring-boot-maven-plugin
		
		       true
		
            
            
            
                org.mybatis.generator
                mybatis-generator-maven-plugin
                1.3.5
            
            
                
                    mysql
                    mysql-connector-java
                    
                    8.0.13
                
            
            
	     
		false
	    
            

参考转载地址:https://blog.csdn.net/shelleylittlehero/article/details/86217272

你可能感兴趣的:(Java)