
Mybatis
时间1024
不做无用之功
展开
-
SpringBoot + Mybatis 整合Druid
前言 为什么要用线程池Druid,当用户大量访问数据库时,数据库建立连接,又没有释放时,此时,就会消耗大量的内存,数据库可能就崩溃了。以下内容的前提,需要已经整合那springboot和mybatis 步骤 1、添加druid依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-st.原创 2021-08-11 15:34:40 · 627 阅读 · 0 评论 -
Spring boot 整合 Mybatis Plus 报 invalid bound statement (not found)错误
ServiceImpl上加@Primary 全网找了个遍也没,也没找到答案,无意中发现。真的坑人的bug,这种源码中的报出的错误,都不知道怎么解决 1、本来invalid bound statement (not found)这个错误,一般就是扫描什么的出错、名称出错之类的,一般问题不大 但是,我怎么改都还是这个错误。 2、在我试了好几种方式之后,出来这个错误 Consider marking one of the beans as @Primary, updating the consu...原创 2020-06-16 22:17:02 · 1556 阅读 · 0 评论