MyBatis 是支持定制化 SQL、存储过程以及高级映射的持久层框架,其主要就完成2件事情: 封装JDBC操作 利用反射打通Java类与SQL语句之间的相互转换 封装JDBC操作 利用反射打通Java类与SQL语句之间的相互转换 MyBatis的主要设计目的就是让我们对执行SQL语句时对输入输出的 ...
分类:
其他好文 时间:
2019-03-31 10:02:31
阅读次数:
121
问题:当一个接口实现由两个实现类时,只使用@Autowired注解,会报错,如下图所示 实现类1 实现类2 controller中注入 然后启动服务报错,如下所示: Exception encountered during context initialization - cancelling re ...
分类:
其他好文 时间:
2019-03-30 12:08:22
阅读次数:
150
重新设置root的密码: $ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully 设置成功后在进行su命令切花到root用户下,认证密码即为 ...
分类:
系统相关 时间:
2019-03-30 01:26:43
阅读次数:
245
openocd.sh #! /usr/bin/expectset timeout 30spawn suexpect "密码:"send "123456\r"send "./killopenocd.sh\r"send "openocd --file ./board/ek-lm3s8962.cfg\r" ...
分类:
系统相关 时间:
2019-03-29 20:39:46
阅读次数:
220
#!/usr/bin/bash###批量上传密钥V.1.0bychenght2019-03-29password=12345qwertforiin{2..254}do{ip=192.28.1.$iping-c1-W1$ip&>/dev/nullif[$?=0];thenecho"$ip">>ip.txt#####EOF交互内容容易出错,请注意#####
分类:
Web程序 时间:
2019-03-29 16:11:07
阅读次数:
225
Expect是Unix/Linux系统中用来进行自动化控制和测试的软件工具,它是Tcl脚本语言的一个扩展,应用在交互式软件中如telnet,ftp,ssh,rsync等。下面是一个用expect脚本登录远程机器的示例:#!/usr/bin/expectsethost[lindex$argv0]setpasswd[lindex$argv1]spawnsshroot@$hostexpect{"
分类:
其他好文 时间:
2019-03-27 15:28:19
阅读次数:
190
本文我们把Linux的中英文命令做了对应翻译,给需要的朋友参考一下。很多朋友在论坛上找Linux英文命令,我们给大家整理了比较全的Linux英文命令,并且附上了对应的中文意思。 su:Swith user 切换用户,切换到root用户 cat: Concatenate 串联 uname: Unix ...
分类:
系统相关 时间:
2019-03-27 11:17:50
阅读次数:
242
1 @PostMapping("/user") 2 public User create(@RequestBody User user){ 3 System.out.println(user.toString()); 4 user.setId(5l); 5 return user; 6 } 1 @T... ...
分类:
其他好文 时间:
2019-03-26 15:25:00
阅读次数:
188
CSI3131Assignment 2 Winter 2019Semaphores/inter-thread synchronizationYou must submit your assignment on-line with Virtual Campus. This isthe only met ...
多条数据,需要条件筛选之后插入到数据表: <insert id="insertExpectCardLabelInfo" parameterType="java.util.List">//插入表字段 INSERT INTO expect_know_label ( expect_know_label_i ...
分类:
其他好文 时间:
2019-03-25 16:21:54
阅读次数:
267