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