随笔分类 - 学习
学习笔记
摘要:项目中用到了多线程,但是线程异步操作时无法调用Service层和Dao层的函数,进行数据库的读取,然后就想办法如何往异步线程中注入Service和Dao层的bean。 一直调试测试了很多 1. 编写一个工具类作为从Spring中获取bean,注意 如果是通过@注解实现的一定要加Configurati
阅读全文
摘要:vim /etc/systemd/system/redis-server.service [Unit]Description=The redis-server Process ManagerAfter=syslog.target network.target [Service]Type=simple
阅读全文
摘要:1. 下载安装包 百度网盘共享地址如下: 2. 下载完成之后解压 3.配置文件 redis.windows.conf 在文件中进行配置 4.打开命令行 输入 redis-server redis.windows.conf 能显示正常运行 5.关闭以上命令行,重新打开新的命令行 输入 C:\serve
阅读全文
摘要:在使用poi完成xlsx后缀文件的解析过程中出现的错误 java.lang.ClassNotFoundException: org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument$Factory at java.net.URLCla
阅读全文
摘要:1. 在项目工程中新建lib 2. 通过maven命令完成jar安装 mvn install:install-file -Dfile=E:\idea\longyan\lib\poi-ooxml-4.1.2.jar -DgroupId=poi-ooxml -DartifactId=poi-ooxml
阅读全文
摘要:> show databases;admin 0.000GBconfig 0.000GBlocal 0.000GBplante 0.000GBtest01 0.000GBtest02 0.001GB> use longyanswitched to db longyan> db.longyan.ins
阅读全文
摘要:confluence出现的bug Non Clustered Confluence: Database is being updated by another Confluence instance. Please see http://confluence.atlassian.com/x/mwiy
阅读全文
摘要:root@ros-OptiPlex-3050:~# sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa More info: https://launchpad.net/~mosquitto-dev/+archive/ubuntu/mosq
阅读全文
摘要:hett@hett-virtual-machine:~$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116 Executing: /tmp/tmp.1Tl7mgE7Z7/gpg
阅读全文
摘要:1. 在ubuntu系统中开启software的更新 2. 添加source list
阅读全文
摘要:说明:由于ubuntu 14取消了对mongodb包的支持,因此,ubuntu 14必须通过源码包的形式进行安装。Ubuntu 16 TLS有mongodb的包的支持,可以直接安装 1. 导入密钥 root@ros-OptiPlex-3050:~# wget -qO - https://www.mo
阅读全文
摘要:用 Apache 的 Basic 认证 + git-http-backend 实现,使用 git-http-backend 搭建 git 服务的原理都是类似的, 主要是利用 web 服务器 (apache/nginx) 进行用户认证, 并将用户信息传递给 CGI 程序 git-http-backen
阅读全文
摘要:想在单位内部署git服务器,因此,特别记录部署相关的安装步骤 1. 安装 root@ros-OptiPlex-3050:~# sudo apt-get install gitReading package lists... DoneBuilding dependency tree Reading s
阅读全文
摘要:org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: WRONGTYPE
阅读全文
摘要:1. 官网下载 https://artifacts.elastic.co/downloads/logstash/logstash-6.3.2.tar.gz https://www.elastic.co/downloads/kibana 由于下载比较慢,可以到我的网盘下载 logstash 6.3.2
阅读全文
摘要:1. 从官网下载对应的解析版本 https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v6.3.2 2. 配置环境 安装mvn环境 从官网下载对应的maven包 http://maven.apache.org/download
阅读全文
摘要:openstack windows 镜像制作 首先下载windows所需要的驱动,virtio-win-1.1.16.vfd virtio-win-0.1-59.iso 下载的官方地址是: https://fedorapeople.org/groups/virt/virtio-win/direct-
阅读全文
摘要:[Mon Apr 15 01:02:31.654247 2019] [:error] [pid 19433:tid 139790082479872] Login successful for user "admin".[Mon Apr 15 01:02:33.645839 2019] [:error
阅读全文
摘要:rg.crazycake.shiro.exception.PrincipalInstanceException: class java.util.HashMap must has getter for field: idWe need a field to identify this Cache O
阅读全文
摘要:shrio中去掉 login;JSESSIONID 在session管理器配置页面中新增一条记录
阅读全文

浙公网安备 33010602011771号