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: