Problems encountered when springboot integrates mybatis-generator

Today, when integrating mybatis to automatically generate content, there were several problems, which took an hour to solve.

1. Problems caused by the new driver of mysql-connector-java?

When using a relatively new SQL driver, modify the url of the connection driver:

 

Prompt the problem of servertimezone:

solve:

Modification of the first place:

Modification in the second place: Because a plug-in is used, the configuration here should also be modified:

 

 2. The content produced is only model and dao, and there is no mapper xml file:

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324837104&siteId=291194637
Recommended