首页 > 其他分享> > The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
作者:互联网
启动类上加:
@MapperScan(value = {"com.example.demo.mapper"})
This issue has appeared in the testing of mybatis batch insert using xml file,
And I check the different with the correct configuration in the old project.
The problem is the mapperScan annotation is missing.
Then I add the mapperScan to the startup class.
The issue closed.
标签:ago,received,old,appeared,demo,server,mapperScan,issue 来源: https://www.cnblogs.com/ukzq/p/15921719.html