上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页

2023年8月7日

简单实现单例原理

摘要: ``` //单例模式 class MySQL { private static $instance; private function __construct() { } private function __clone() { } public static function getInstanc 阅读全文

posted @ 2023-08-07 11:25 何苦-> 阅读(17) 评论(0) 推荐(0)

页面静态化的方法 伪静态

摘要: ``` 1.页面静态化 --在静态页面还是会有一部分内容会发送变动,可以使用ajax动态加载这些需要变动的数据 1.真静态 1)使用ob缓存获取页面输出的内容,进行静态页面生成 缓存区:ob缓存区=》程序缓存区=》浏览器缓存区 ob_start() 开启ob缓存 ob_clean() 清除缓存区 之 阅读全文

posted @ 2023-08-07 11:24 何苦-> 阅读(75) 评论(0) 推荐(0)

网页 请求头 错误码

摘要: //在http1.0 中 401 未授权 //返回'找不到文件' header('HTTP/1.0 404 Not Found');header('location:index.php'); 200 请求被成功接收 301 重定向:永久跳转,完成请求还需要进一步操作 302 重定向:临时跳转完成请求 阅读全文

posted @ 2023-08-07 11:22 何苦-> 阅读(28) 评论(0) 推荐(0)

2023年7月14日

@ControllerAdvice 不生效踩坑解决思路

该文被密码保护。 阅读全文

posted @ 2023-07-14 09:59 何苦-> 阅读(0) 评论(0) 推荐(0)

mybatis if标签判断Integer类型的值不等于0 (!=''等价于!=0)

摘要: ### 场景 当传入的`activityInfoDTO`属性`codeAction`的值为0时,需要通过状态`(code_action =0或1)`来查询数据,`code_action `类型为`Integer` ``` and code_action = #{activityInfoDTO.cod 阅读全文

posted @ 2023-07-14 09:52 何苦-> 阅读(1222) 评论(0) 推荐(0)

2023年7月3日

笔记本扩展显示器分辨率低,navicat显示大模糊

摘要: ![](https://img2023.cnblogs.com/blog/1168705/202307/1168705-20230703202327101-1381839979.png) 解决办法: ![](https://img2023.cnblogs.com/blog/1168705/20230 阅读全文

posted @ 2023-07-03 20:26 何苦-> 阅读(847) 评论(0) 推荐(1)

1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in

摘要: ### 项目场景: mysql创建`function` 报错误`1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in` ### 问题描述: 执行创建函数的sql语句时,提示:`This functio 阅读全文

posted @ 2023-07-03 11:04 何苦-> 阅读(1919) 评论(0) 推荐(0)

2023年6月30日

mybatis Ipage 分页返回 实体转vo

摘要: ``` log.info("[ActivityInfoServiceImpl][importGainNowRewardRules],分页查询方法,开始,activityInfoVO={}", JSON.toJSONString(activityInfoVO)); if (null == activi 阅读全文

posted @ 2023-06-30 14:36 何苦-> 阅读(937) 评论(0) 推荐(0)

2023年5月25日

MYBATIS中>=和<=的实现方式

摘要: - 原因 `mybatis`使用的是`xml`格式的文件。使用`>`和`=使用 =]]>` `>` 阅读全文

posted @ 2023-05-25 10:00 何苦-> 阅读(3102) 评论(0) 推荐(0)

2023年5月23日

Query execution was interrupted, maximum statement execution time exceeded

摘要: 数据库版本:MySQL 5.7.16 报错信息: ERROR 3024 (HY000): Query execution was interrupted, maximum statement execution time exceeded 检查bug库,发现同样问题: https://bugs.my 阅读全文

posted @ 2023-05-23 17:01 何苦-> 阅读(3355) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页

导航