![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
嵗仴洳詩
这个作者很懒,什么都没留下…
展开
-
使用MBG生成mapper
1、首先在pom.xml中增加插件<!-- mybatis generator 自动生成代码插件 --><plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> &...原创 2020-04-19 16:42:10 · 307 阅读 · 0 评论 -
Java异常信息分析
异常案例项目启动失败异常The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunica...原创 2019-12-15 13:01:55 · 702 阅读 · 0 评论 -
Spring 抽象类属性注入方法可以用来实现模板方法模式
抽象类中有属性需要自动注入public abstract class FlowExecutor { @Autowired QsFlowMapper qsFlowMapper; protected abstract void checkDependCondieiton(QsFlow qsFlow); protected abstract void chec...原创 2019-09-01 02:11:08 · 1209 阅读 · 0 评论 -
mybatis表名参数,传递整个sql
mybatis中参数传递,以表名作为参数 <select id="getRecodeCount" resultType="java.lang.Integer" parameterType="java.lang.String" statementType="STATEMENT"> select count(1) as recode_count from ${table...原创 2019-09-01 23:12:57 · 1816 阅读 · 0 评论