摘要: 1.查询 // 查询 @Select("select id, name, type, numbers, cancelled, completed, percentage from customer_list") List<CustomerList> selectCustomerListAll(); 阅读全文
posted @ 2019-11-15 18:27 夏天丷 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.先申请ssl 腾讯 阿里都有免费的一年的 2.修改tomcat conf文件夹的service.xml文件 <!-- 将所有的8443 改为443 --> <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" red 阅读全文
posted @ 2019-10-25 13:47 夏天丷 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1. 出现这个问题一般是因为代码循环引用出现的问题,可以改变逻辑,也可以直接加上下面加粗的代码 JSONObject jsonObject = new JSONObject(); jsonObject.put("loadwarning", loadwarning); //避免出现引用 "$ref": 阅读全文
posted @ 2019-10-14 17:46 夏天丷 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 1.xml写法 <!-- 联查用户users表 --> <resultMap type="nanh.entity.Tasks" id="selectTasksAllLeftUsers"> <id column="id" property="id"/> <result column="tasknumb 阅读全文
posted @ 2019-10-14 17:41 夏天丷 阅读(591) 评论(0) 推荐(0) 编辑
摘要: 1.服务器发送消息 package demo1; import org.eclipse.paho.client.mqttv3.MqttClient; import org.eclipse.paho.client.mqttv3.MqttConnectOptions; import org.eclips 阅读全文
posted @ 2019-10-09 18:00 夏天丷 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1、创建新用户 CREATE USER 'admin'@'%' IDENTIFIED BY '123456'; '%' 表示可以远程登录访问、操作 ‘localhost’ 表示只能本地登录访问、操作2、给用户赋权 需要使用root账户赋权 grant all privileges on *.* to 阅读全文
posted @ 2019-09-05 14:57 夏天丷 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1、查看最大连接量 show variables like '%max_connections%'; 2、修改最大连接量 //修改完记得重启 set GLOBAL max_connections = 32000; //经过测试这个设置好像是暂时的,重启服务器或Mysql服务的话会重置为默认连接大小, 阅读全文
posted @ 2019-09-03 16:48 夏天丷 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1、 window.onload = function () {automatic(); } 2、 function automatic(){ //每隔两秒刷新一次页面setTimeout(automatic,2*1000); } 阅读全文
posted @ 2019-09-03 10:42 夏天丷 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 1、实现类获取session //根据id 修改阈值 public int altThers(threshold threshold) { SqlSessionFactoryBuilder builder = new SqlSessionFactoryBuilder(); try { Reader 阅读全文
posted @ 2019-09-02 15:31 夏天丷 阅读(797) 评论(0) 推荐(0) 编辑
摘要: 1、配置文件(放在项目下即可) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1. 阅读全文
posted @ 2019-09-02 15:26 夏天丷 阅读(179) 评论(0) 推荐(0) 编辑