摘要: 1、模板模式 定义一个算法骨架,将一些步骤延迟到子类中。模板方法中子类不可以改变算法结构但是可以重新定义算法。解决的问题:一些方法通用,却在每个子类都重新写了这一方法 Spring中JdbcTemplate就是这种实现,JDBC的步骤是固定的 (1)加载驱动(2)建立连接(3)执行SQL语句(4)访 阅读全文
posted @ 2019-09-12 16:09 qing222 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-12 15:10 qing222 阅读(94) 评论(0) 推荐(0) 编辑
摘要: SELECT VERSION();show GLOBAL VARIABLES like '%PARTITION%';-- 查看分区情况 show GLOBAL VARIABLES like '%datadir%';-- 查看物理文件位置datadir D:\mysql-5.7.23-winx64\d 阅读全文
posted @ 2019-09-12 14:39 qing222 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 异常: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property n 阅读全文
posted @ 2019-09-12 14:26 qing222 阅读(1225) 评论(0) 推荐(1) 编辑
摘要: ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your 阅读全文
posted @ 2019-09-12 14:18 qing222 阅读(11033) 评论(0) 推荐(0) 编辑
摘要: 异常:java.net.SocketException: Broken pipe (Write failed); nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketE 阅读全文
posted @ 2019-09-12 14:15 qing222 阅读(5681) 评论(0) 推荐(0) 编辑