- 博客(12)
- 资源 (2)
- 收藏
- 关注
原创 java list转 数组
list转数组List<String> list = new ArrayList<String>();String [] newarr = new String[list.size()];String [] newarr1 = list.toArray(newarr);
2021-11-25 10:34:00
179
原创 commons-httpclientget请求 CookieSpec: Invalid cookie state: path not specified
commons-httpclient 模拟http get请求异常日志CookieSpec: Invalid cookie state: path not specified导致cookie不生效解决方案String key = “JESESSIONID”;//cookie的keyString value = “11C05FD970395380B785E538C3FFAC9B”;cookie的值HttpClient client ;Cookie cookie = new Cookie(cl
2021-11-23 19:14:22
232
原创 log4j2日志启动报错
后台报错日志 javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized. at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source) at org.apache.logging.log4j.core.config.x
2021-11-23 18:12:11
296
原创 mysql常用命令
登录mysqlmysql -uroot -proot查看所有的数据库show databases;创建数据库create database mysqla;数据库赋权grant all privileges on mysqla.* to root@'%' identified by 'root';
2021-11-18 09:16:39
638
原创 maven安装jar到本地仓库
安装jar到本地仓库mvn install:install-file -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar
2021-11-12 08:34:33
361
原创 docker创建mysql库
docker 拉取mysql镜像docker pull mysql:5.7.36创建docker中 mysql服务 对应的主机目录mkdir /docker/mysql/5.7.36/conf /docker/mysql/5.7.36/logs /docker/mysql/5.7.36/data启动 mysql容器docker run --name mysql5.7.36 -p 3306:3306 -v /docker/mysql/5.7.36/conf:/etc/mysql -v /do
2021-11-10 21:32:00
1384
原创 centos 创建 docker 并搭建db2 数据库
1. centos搭建dockercurl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun启动dockersystemctl start docker2. 获取db2数据库镜像dockerhub地址:https://hub.docker.com/搜寻db2数据库镜像docker search db2拉取db2镜像docker pull ibmcom/db2创建容器并运行docker run -itd -
2021-11-10 13:26:40
1640
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人