上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页
摘要: 1、Struts2是类级别的拦截, 一个类对应一个request上下文,SpringMVC是方法级别的拦截,一个方法对应一个request上下文,而方法同时又跟一个url对应,所以说从架构本身上SpringMVC就容易实现restful url,而struts2的架构实现起来要费劲,因为Struts 阅读全文
posted @ 2023-04-10 12:33 Robots2 阅读(233) 评论(0) 推荐(0)
摘要: 一.事务的4个特性: 原子性:一个事务中所有对数据库的操作是一个不可分割的操作序列,要么全做,要么全部做。 一致性:数据不会因为事务的执行而遭到破坏。 隔离性:一个事务的执行,不受其他事务(进程)的干扰。既并发执行的个事务之间互不干扰。 持久性:一个事务一旦提交,它对数据库的改变将是永久的。 1、编 阅读全文
posted @ 2023-04-10 12:32 Robots2 阅读(176) 评论(0) 推荐(0)
摘要: 一、常用命令 1、连接zk ./zkCli.sh -server 127.0.0.1:2181 2、查看目录文件 普通信息 ls / 详细信息 ls2 / 3、新增znode create /test "test" 4、删除数据 delete /test 递归删除目录 deleteall /amor 阅读全文
posted @ 2023-04-10 12:21 Robots2 阅读(120) 评论(0) 推荐(0)
摘要: 一、常用语句 1、安装pip sudo apt-get install python-pip 2、查看pip版本:pip --version 3、获取帮助:pip --help 4、升级pip:pip install -U pip 5、安装指定版本的包 pip install SomePackage 阅读全文
posted @ 2023-04-10 12:16 Robots2 阅读(50) 评论(0) 推荐(0)
摘要: 一、代码 public class StringTest { public static void main(String[] args) { Map<String, Object>map=new ConcurrentHashMap<String, Object>(); map.put("safei 阅读全文
posted @ 2023-04-10 11:22 Robots2 阅读(628) 评论(0) 推荐(0)
摘要: 一、代码 """ Version: Python3.5 Author: OniOn Site: http://www.cnblogs.com/TM0831/ Time: 2019/3/11 10:46 """ import re import queue import requests from l 阅读全文
posted @ 2023-04-10 11:21 Robots2 阅读(33) 评论(0) 推荐(0)
摘要: 一、代码 public class Test { public static void main(String[] args) { Map<String, Object> map = new HashMap<String, Object>(); map.put("name", "ZK"); map. 阅读全文
posted @ 2023-04-10 11:19 Robots2 阅读(598) 评论(0) 推荐(0)
摘要: 一、配置说明 <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2023-04-10 11:05 Robots2 阅读(5383) 评论(0) 推荐(1)
摘要: 一、修改本机host文件后也会遇到修改hosts不生效的情况,而且有时生效,有时不生效情况 1、DNS缓存机制 一条域名的DNS记录会在本地有两种缓存,浏览器缓存和操作系统(OS)缓存。在浏览器中访问的时候会优先访问浏览器的缓存,如果未命中则访问OS缓存,最后再访问DNS服务器,然后DNS服务器会递 阅读全文
posted @ 2023-04-10 10:25 Robots2 阅读(760) 评论(0) 推荐(0)
摘要: 1.创建工作簿 (WORKBOOK) HSSFWorkbook wb = new HSSFWorkbook(); FileOutputStream fileOut = new FileOutputStream("workbook.xls"); wb.write(fileOut); fileOut.c 阅读全文
posted @ 2023-04-10 09:50 Robots2 阅读(43) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页