09 2019 档案
摘要:1、模板模式 定义一个算法骨架,将一些步骤延迟到子类中。模板方法中子类不可以改变算法结构但是可以重新定义算法。解决的问题:一些方法通用,却在每个子类都重新写了这一方法 Spring中JdbcTemplate就是这种实现,JDBC的步骤是固定的 (1)加载驱动(2)建立连接(3)执行SQL语句(4)访
阅读全文
摘要:SELECT VERSION();show GLOBAL VARIABLES like '%PARTITION%';-- 查看分区情况 show GLOBAL VARIABLES like '%datadir%';-- 查看物理文件位置datadir D:\mysql-5.7.23-winx64\d
阅读全文
摘要:异常: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property n
阅读全文
摘要:### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your
阅读全文
摘要:异常:java.net.SocketException: Broken pipe (Write failed); nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketE
阅读全文
摘要:--搜集于网络 1.Apache POI 处理office文档用到的2. IText PDF操作类库 3.Java Base64 Base64编码类库 4.Commons-lang 对应java sdk里面的java.lang包,用来简化基本工具类操作 5.pingyin4j 中文转拼音库 6.Co
阅读全文
摘要:1、下载rpm wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 2、安装rpm yum -y install mysql57-community-release-el7-10.noarch
阅读全文
摘要:--整理于网络 1. 查看openssh版本ssh -Vopenssh版本必须大于4.8p12. 创建sftp组groupadd sftp3. 创建sftp用户useradd -g sftp -s /sbin/nologin -M sftppasswd sftp输入密码4. 建立目录mkdir -p
阅读全文
摘要:摘自:https://www.cnblogs.com/xcywt/p/8146123.html 比如我在线程A中调用了fun()函数。同步/异步:针对的被调用者的状态。也就是fun函数。(也就是上面的烧水壶)同步是指fun如果没有结果就不会返回,除非有结果了。异步是指fun在被调用之后就立即返回了。
阅读全文