摘要:
1 select cardId(字段)+1 from card(表) where cardId = (select max(cardId) from card)(子查询) 阅读全文
摘要:
1 style=" 2 -webkit-appearance: none; 3 -webkit-tap-highlight-color: #fff; 4 outline: 0;" 阅读全文
摘要:
转发一 1 @Controller 2 public class ModelTest { 3 @RequestMapping("/t1")//url访问的地址 http://localhost:8080/springmvc_04_controller01_war_exploded/t1 4 publ 阅读全文
摘要:
//获取CPU合数 System.out.println(Runtime.getRuntime().availableProcessors()); 阅读全文
摘要:
1 //Executors 工具类 2 //使用线程池之后,使用线程池来创建线程 3 public class Dome1 { 4 public static void main(String[] args) { 5 ExecutorService threadExecutor = Executor 阅读全文
摘要:
方式 抛出异常 有返回值,不抛出异常 阻塞,等待 超时等待 添加 add offet() put() offer(,,) 移除 remove poll() take() poll(,) 检测对首元素 element peek .. .. 第一 1 //抛出异常 2 public static voi 阅读全文
摘要:
CountDownLatch public class CountDownLatchDemo { //原理: //countDownLatch.countDown(); // 数量-1 //countDownLatch.await(); // 等待计数器归零,然后再向下执行 //每次有线程调用 co 阅读全文
摘要:
1 @RequestMapping("/j3") 2 public String JsonDome3() throws JsonProcessingException { 3 ObjectMapper mapper = new ObjectMapper(); 4 Date date = new Da 阅读全文
摘要:
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 阅读全文
摘要:
第一种 : 通过ModelAndView 1 public class ControllerTest1 implements Controller { 2 3 public ModelAndView handleRequest(HttpServletRequest httpServletReques 阅读全文