Loading

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页
摘要: 1 select cardId(字段)+1 from card(表) where cardId = (select max(cardId) from card)(子查询) 阅读全文
posted @ 2020-04-29 15:50 Rzk 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 style=" 2 -webkit-appearance: none; 3 -webkit-tap-highlight-color: #fff; 4 outline: 0;" 阅读全文
posted @ 2020-04-22 22:00 Rzk 阅读(839) 评论(0) 推荐(0) 编辑
摘要: 转发一 1 @Controller 2 public class ModelTest { 3 @RequestMapping("/t1")//url访问的地址 http://localhost:8080/springmvc_04_controller01_war_exploded/t1 4 publ 阅读全文
posted @ 2020-04-19 18:52 Rzk 阅读(382) 评论(0) 推荐(0) 编辑
摘要: //获取CPU合数 System.out.println(Runtime.getRuntime().availableProcessors()); 阅读全文
posted @ 2020-04-15 11:53 Rzk 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 方式 抛出异常 有返回值,不抛出异常 阻塞,等待 超时等待 添加 add offet() put() offer(,,) 移除 remove poll() take() poll(,) 检测对首元素 element peek .. .. 第一 1 //抛出异常 2 public static voi 阅读全文
posted @ 2020-04-14 16:39 Rzk 阅读(199) 评论(0) 推荐(0) 编辑
摘要: CountDownLatch public class CountDownLatchDemo { //原理: //countDownLatch.countDown(); // 数量-1 //countDownLatch.await(); // 等待计数器归零,然后再向下执行 //每次有线程调用 co 阅读全文
posted @ 2020-04-14 11:45 Rzk 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 第一种 : 通过ModelAndView 1 public class ControllerTest1 implements Controller { 2 3 public ModelAndView handleRequest(HttpServletRequest httpServletReques 阅读全文
posted @ 2020-04-11 11:58 Rzk 阅读(478) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页