摘要: 1、利用to_days函数查询今天的数据: select * from 表名 where to_days(时间字段名) = to_days(now()); to_days函数:返回从0000年(公元1年)至当前日期的总天数。2、昨天SELECT * FROM 表名 WHERE TO_DAYS( NO 阅读全文
posted @ 2019-07-15 14:33 jason47 阅读(1806) 评论(0) 推荐(0) 编辑
摘要: 在应用入口加入@MapperScan("com.IBM.XXXXX.dao") 阅读全文
posted @ 2019-07-12 17:46 jason47 阅读(9371) 评论(0) 推荐(0) 编辑
摘要: 1. 从https://start.spring.io/的spring initializr生成demo,使用默认的2.1.6.release(2019年7月10日) 2. 在eclipse加载后,pom.xml会报unknown error。 3.使用maven--update project.. 阅读全文
posted @ 2019-07-10 12:44 jason47 阅读(5794) 评论(0) 推荐(1) 编辑
摘要: 1.下载Apache-jmeter-5.1.1.zip 2.解压到一个地方,就可以开始使用了,如果需要在CMD里快速打开,可以设置环境变量。 3.在bin里面,直接打开jmeter.bat。 可以修改testplan的名字 4.在左边任务栏TestPlan右键,选择Add--Threads(User 阅读全文
posted @ 2019-07-03 11:29 jason47 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 1. 打包 JSONObject jsonObject = new JSONObject(); jsonObject.put("code", "200"); jsonObject.put("message", "成功"); JSONArray deviceTypeArray = new JSONAr 阅读全文
posted @ 2019-06-24 17:36 jason47 阅读(3286) 评论(0) 推荐(1) 编辑
摘要: 接口.java public interface DeService { } 接口实现类1.java @Service("ud")public class DeServiceImplUD implements DeService{ } 接口实现类2.java @Service("ug")public 阅读全文
posted @ 2019-06-21 15:38 jason47 阅读(6903) 评论(0) 推荐(0) 编辑
摘要: 代码补全(包括import)提示: Alt + / 查找接口或者方法的实现: Ctrl + T(选择方法quick type hierarchy,在mac下是cmd+T) 代码纠正(fix)提示: Ctrl + 1 删除当前行: Ctrl + D 注释当前行: Ctrl + / (在有注释//下是去 阅读全文
posted @ 2019-06-21 10:52 jason47 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 转自https://www.cnblogs.com/tomxin7/p/9434085.html 业务介绍 最近用Spring Boot开发了一个翻译的小项目,但是服务器上还跑着其他项目,包括一个同样用Spring Boot开发的微信后端服务,本次业务需要在阿里云的Linux使用同一个Tomcat容 阅读全文
posted @ 2019-06-20 10:07 jason47 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 1.创建user表 2.创建gateway表 3.创建user_gateway表 4.创建device表 5.创建gateway_device表 6.创建一个实体类 public class DeviceModule{ private Integer id; private String devic 阅读全文
posted @ 2019-06-19 16:29 jason47 阅读(10115) 评论(0) 推荐(0) 编辑
摘要: @Componentpublic class TestApplicationListener implements ApplicationListener<ContextRefreshedEvent>{ @Override public void onApplicationEvent(Context 阅读全文
posted @ 2019-05-27 18:06 jason47 阅读(2927) 评论(0) 推荐(0) 编辑