会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
Rzk
博客园
首页
新随笔
管理
上一页
1
···
23
24
25
26
27
28
29
30
31
···
37
下一页
2020年4月15日
池化技术和线程池的使用和四大拒绝策略
摘要: 1 //Executors 工具类 2 //使用线程池之后,使用线程池来创建线程 3 public class Dome1 { 4 public static void main(String[] args) { 5 ExecutorService threadExecutor = Executor
阅读全文
posted @ 2020-04-15 11:46 Rzk
阅读(237)
评论(0)
推荐(0)
2020年4月14日
四组API
摘要: 方式 抛出异常 有返回值,不抛出异常 阻塞,等待 超时等待 添加 add offet() put() offer(,,) 移除 remove poll() take() poll(,) 检测对首元素 element peek .. .. 第一 1 //抛出异常 2 public static voi
阅读全文
posted @ 2020-04-14 16:39 Rzk
阅读(213)
评论(0)
推荐(0)
常用的辅助类(必会
摘要: CountDownLatch public class CountDownLatchDemo { //原理: //countDownLatch.countDown(); // 数量-1 //countDownLatch.await(); // 等待计数器归零,然后再向下执行 //每次有线程调用 co
阅读全文
posted @ 2020-04-14 11:45 Rzk
阅读(212)
评论(0)
推荐(0)
2020年4月12日
时间戳
摘要: 1 @RequestMapping("/j3") 2 public String JsonDome3() throws JsonProcessingException { 3 ObjectMapper mapper = new ObjectMapper(); 4 Date date = new Da
阅读全文
posted @ 2020-04-12 23:48 Rzk
阅读(202)
评论(0)
推荐(0)
2020年4月11日
SpringMVC JSON乱码解决
摘要: spring.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema
阅读全文
posted @ 2020-04-11 18:13 Rzk
阅读(509)
评论(0)
推荐(0)
数据显示到前端
摘要: 第一种 : 通过ModelAndView 1 public class ControllerTest1 implements Controller { 2 3 public ModelAndView handleRequest(HttpServletRequest httpServletReques
阅读全文
posted @ 2020-04-11 11:58 Rzk
阅读(494)
评论(0)
推荐(0)
ubuntu vim字体高亮
摘要: 在 /etc/vim/vimrc 输入vim vimrc 在最后填 高亮 syntax on 显示行数 set nu
阅读全文
posted @ 2020-04-11 03:07 Rzk
阅读(349)
评论(0)
推荐(0)
vi编辑文件保存后,提示""vimrc" E212: Can't open file for writing Press ENTER or type command to continu"
摘要: 出现这个错误的原因可能有两个: 1.当前用户的权限不足; 2.此文件可能正被其他程序或用户使用。 一般错误原因都是前者,解决方案是在使用vi命令打开文件时,前面加上sudo来临时提供管理员权限,比如使用命令“sudo vi vimrc”打开编辑文件。
阅读全文
posted @ 2020-04-11 03:04 Rzk
阅读(1580)
评论(1)
推荐(0)
2020年4月10日
RestFul 风格
摘要: @Controller public class RestFullController { //映射访问路径 @RequestMapping("/r1") public String RestFull(int a,int b,Model model){ //Spring MVC会自动实例化一个Mod
阅读全文
posted @ 2020-04-10 23:50 Rzk
阅读(223)
评论(0)
推荐(0)
SVN配置码云
摘要: 这里的项目地址 复制 右键出现svn点击 把码云仓库的地址放进去 这里的项目地址 点击确定就好了
阅读全文
posted @ 2020-04-10 03:13 Rzk
阅读(207)
评论(0)
推荐(0)
上一页
1
···
23
24
25
26
27
28
29
30
31
···
37
下一页
公告