打包的时候,不同版本的 Eclipse 还有IDEA 会有打包打不进去Mapper.xml 文件,这个时候要加如下代码, 在<build> 标签内加入即可 <resources> <resource> <directory>src/main/java</directory> <includes> < ...
分类:
移动开发 时间:
2017-05-14 18:00:44
阅读次数:
705
#include"xparameters.h"/* Peripheral parameters 外围的參数 */ #include"xgpio.h"/* GPIO data struct and APIs GPIO、结构,应用程序编程接口 */ #include"xil_printf.h" #inc ...
分类:
数据库 时间:
2017-05-14 16:11:38
阅读次数:
219
题目: Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges ...
分类:
其他好文 时间:
2017-05-14 13:50:49
阅读次数:
206
CGRect rect = [[UIApplication sharedApplication] statusBarFrame]; 状态栏的高度: float status height = rect.size.height; 导航栏的高度: float navigationheight = sel ...
分类:
移动开发 时间:
2017-05-14 12:29:33
阅读次数:
242
DescriptionGiven a 2D grid, each cell is either a wall 2, a zombie 1 or people 0 (the number zero, one, two).Zombies can turn the nearest people(up/do ...
分类:
其他好文 时间:
2017-05-14 12:22:11
阅读次数:
357
Struts1,什么是"ActionForward"?ActionForward的“作用”是什么? ...
分类:
其他好文 时间:
2017-05-14 00:53:02
阅读次数:
246
前面一篇文章讲了如何快速搭建一个ActiveMQ的示例程序,ActiveMQ是JMS的实现,那这篇文章就再看下另外一种消息队列AMQP的代表实现RabbitMQ的简单示例吧。在具体讲解之前,先通过一个图来概览下: 1.添加Maven依赖 2.Spring配置文件中添加rabbitmq相关配置 1)消 ...
分类:
其他好文 时间:
2017-05-13 23:18:19
阅读次数:
270
1.@if @if 指令是一个 SassScript,它可以根据条件来处理样式块,如果条件为 true 返回一个样式块,反之 false 返回另一个样式块 在 Sass 中除了 @if 之,还可以配合 @else if 和 @else 一起使用。 假设要控制一个元素隐藏或显示,我们就可以定义一个混合 ...
分类:
Web程序 时间:
2017-05-13 22:17:43
阅读次数:
301
轮子年年有人造,我们也来凑热闹,参考协程实现,大概有以下几种方法: 1)利用setjmp,longjmp 2)利用ucontext接口函数 3)汇编 (线程无非就是多了个抢占功能,由定时器触发,而非自愿让出运行权限) 因为我写的时候还没看到其他帖子,如果看到了,铁定会用最直观的ucontext接口写 ...
分类:
编程语言 时间:
2017-05-13 16:58:32
阅读次数:
254
AngularJS 表达式 (1.{{}} 2.ng-bind(单项绑定)) AngularJS 表达式写在双大括号内:{{ expression }} AngularJS 使用表达式把数据绑定到 HTML,这与 ng-bind 指令有异曲同工之妙。 AngularJS 将在表达式书写的位置"输出" ...
分类:
Web程序 时间:
2017-05-13 15:59:48
阅读次数:
177