使用mybatis 通用Mapper类的笔记

  • Post author:
  • Post category:其他

想要偷懒不写mybatis里的一大堆mapper.xml文件,就想使用通用的Mapper类减少工作量。 首先,我使用的是Maven项目,所以导入Mapper的Maven依赖 [html] view plain copy < dependency > < groupId > tk.mybatis </ groupId > < artifactId > …

继续阅读 使用mybatis 通用Mapper类的笔记

RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the

  • Post author:
  • Post category:其他

bug: RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same 源代码如下: if __name__ == "__main__": from torchsummary import summary model = UNet() print(mo…

继续阅读 RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the

C语言基础:折半查找

  • Post author:
  • Post category:其他

输入一组(10个数)从小到大有序且不重复的整数,用折半查找法在其中查找x,若x存在,输 出该数在数组中的下标,若找不到x,显示“no” 输入包括两行数据: 第一行:包括10个int类型整数,用空格间隔,系统保证其从小到大有序且不重复(即你不需要判断该组数据是否有序且不重复); 第二行:输入待查找的int型整数x 输入样例: 1 2 3 4 5 6 7 8 9 10 5 输出样例: 4 #inclu…

继续阅读 C语言基础:折半查找

java中Collections、Map集合、HashMap集合、LinkedHashMap集合、Hashtable集合、List/Map/Set接口静态方法of

  • Post author:
  • Post category:java

Collections:集合工具类: Collections是一个集合的工具类,通过此类可以调用操作集合的api,但是只能操作list结合,不能操作set集合,如下: Person类:用于集合存储自定义元素时创建自定义对象: public class Person implements Comparable<Person> { private int age; private Stri…

继续阅读 java中Collections、Map集合、HashMap集合、LinkedHashMap集合、Hashtable集合、List/Map/Set接口静态方法of

python3.6: error while loading shared libraries: libpython3.6m.so.1.0

  • Post author:
  • Post category:python

前两天在一台linux服务器安装python3.6的时候报了如下错误 : python3.6: error while loading shared libraries: libpython3.6m.so.1.0:cannot open shared object file: No such file or directory 使用命令 ldd /usr/local/Python-3.6/bin/…

继续阅读 python3.6: error while loading shared libraries: libpython3.6m.so.1.0

[Linux]arm-linux-gcc交叉编译环境

  • Post author:
  • Post category:linux

1.问题: Linux下(gcc)编译的可执行程序,放到Android设备中运行,报not executable: 64-bit ELF file: $ gcc -static hello.cpp -o hello-exe $ adb shell /system/bin/hello-exe /system/bin/sh: /system/bin/hello-exe: not executable:…

继续阅读 [Linux]arm-linux-gcc交叉编译环境

jdk1.8反编译工具 -Procyon-Decompiler

  • Post author:
  • Post category:其他

转载 原文链接: https://blog.csdn.net/u010398771/article/details/106259207 本来是使用的jad 挺好用的, 但是奈何不支持jdk1.8 , 所以只能更换了, 这里推荐使用 Procyon-Decompiler 工具的官方下载网站是: https://bitbucket.org/mstrobel/procyon/downloads/ 国内的…

继续阅读 jdk1.8反编译工具 -Procyon-Decompiler

MySQL InnoDB底层原理(索引+行锁)实现机制解析

  • Post author:
  • Post category:mysql

【第一章】innodb行格式 1、我们要查某一条或者某多条数据的时候,是怎么样在计算机里面(innodb)进行查询运算的? 首先我们要知道一条数据显示在屏幕上其实是一个逻辑的一个视界。 我们查询数据,首先是将数据放到我们计算机的内存里面的 然后再根据SQL语句的条件与cpu读到的数据进行对比 就好比 select * from test where a >1 ; 因为存储引擎和文件系统是不会…

继续阅读 MySQL InnoDB底层原理(索引+行锁)实现机制解析

关于需求分析问题总结

  • Post author:
  • Post category:其他

一:需求问题总结: 1.看清对象类型维度(包裹维度 还是订单维度.) 2.对象的来源就是(对象的各种属性)数据来源分为通过时间维度分. 3.对象的各种属性决定业务系统的操作流程. 4.从业务类型的角度分不同的系统操作. 5.各个业务系统操作这个对象的流程. 6.对象流程操作与其他系统(第三方过程)的交互过程. 7.与现有的流程操作有哪些要修改的地方. 8.分析名词动词的含义. 转载于:https:…

继续阅读 关于需求分析问题总结

ARM linux解析之压缩内核zImage的启动过程

  • Post author:
  • Post category:linux

ARM linux 解析之压缩内核 zImage 的启动过程 semilog@163.com 首先,我们要知道在 zImage 的生成过程中,是把 arch/arm/boot/compressed/head.s 和解压代码 misc.c , decompress.c 加在压缩内核的最前面最终生成 zImage 的,那么它的启动过程就是从这个 head.s 开始的,并且如果代码从 RAM 运行的话,…

继续阅读 ARM linux解析之压缩内核zImage的启动过程