会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
路边
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2022年1月6日
SQLServer函数
摘要: 转换列结构: convert(VARCHAR ,列名,120) 示例:配合使用 SELECT * FROM CTP_AFFAIR WHERE convert(VARCHAR ,CREATE_date,120) like '2021-08%' 替换:replace(field0005,'2022','
阅读全文
posted @ 2022-01-06 15:22 折咻
阅读(57)
评论(0)
推荐(0)
2022年1月5日
缓存
摘要: 目的:解决多次查询同一条数据 缓存模式:最经典的缓存+数据库读写的模式,就是 Cache Aside Pattern 常见的缓存问题有以下几个: 缓存与数据库双写不一致 缓存雪崩、缓存穿透 缓存并发竞争 缓存与数据库双写不一致解决方式: 查询:读的时候,先读缓存,缓存没有的话,就读数据库,然后取出数
阅读全文
posted @ 2022-01-05 14:53 折咻
阅读(38)
评论(0)
推荐(0)
2021年12月31日
YYYY-MM-dd
摘要: Calendar calendar = Calendar.getInstance(); calendar.set(2019, Calendar.DECEMBER, 31); Date strDate = calendar.getTime(); //注意yyyy-MM-dd和YYYY-MM-dd Da
阅读全文
posted @ 2021-12-31 16:28 折咻
阅读(246)
评论(0)
推荐(0)
索引
摘要: Mysql: 优点:提高查询效率 缺点:降低跟新效率 索引类型:Fulltext 、Hash、Btree、Rtree 查询表索引: show index from 表 创建索引: CREATE INDEX indexName ON table_name (column_name) 修改表结构(添加索
阅读全文
posted @ 2021-12-31 10:21 折咻
阅读(46)
评论(0)
推荐(0)
2021年12月22日
JAVA远程调用 webService
摘要: package com.example.demo; import org.apache.cxf.endpoint.Client; import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory; import javax.
阅读全文
posted @ 2021-12-22 10:39 折咻
阅读(112)
评论(0)
推荐(0)
2021年12月20日
JAVA关闭谷歌游览器
摘要: 关闭谷歌游览器: Runtime.getRuntime().exec("taskkill /F /IM chrome.exe"); Runtime.getRuntime().exec 说明:用于调用外部可执行程序或系统命令
阅读全文
posted @ 2021-12-20 11:28 折咻
阅读(256)
评论(0)
推荐(0)
2020年11月17日
Rest:新建人员
摘要: CTPServiceClientManager clientManager = CTPServiceClientManager.getInstance("http://127.0.0.1:80"); //取得REST动态客户机实例 CTPRestClient client = clientManag
阅读全文
posted @ 2020-11-17 13:13 折咻
阅读(200)
评论(0)
推荐(0)
2020年9月20日
shiro-认证配置
摘要: shiro--认证: Jar包 shiro-all 在web.xml加shiro过滤器 <!--springweb过滤器代理对象,代理shiro对象--> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.spring
阅读全文
posted @ 2020-09-20 15:43 折咻
阅读(129)
评论(0)
推荐(0)
上一页
1
2
3
4