随笔分类 - other
摘要:SecurityManager,安全管理器,是一个接口,它继承了Authenticator, Authorizer, SessionManager;Subject, 代表一个用户,是一个接口;SecurityUtils,工具类,是一个抽象类;要使用shiro,先获取SecurityManager的实
阅读全文
摘要:1. shiro的使用围绕着securityManager,权限需要从realm中来。 securityManager可以设置realm或者realms,或者通过设置authenticator来设置realm或realms。 realm中可以设置密码匹配器,credentialsMatcher,从而
阅读全文
摘要:if you want to be a better javaer, you should spent time on apache commons.
阅读全文
摘要:centos7及以后修改hostname, hostnamectl set-hostname centos7 centos7之前修改hostname, vi /etc/sysconfig/network ; HOSTNAME=your_host_name linux挂载移动存储介质, mount /
阅读全文
摘要:阿里云docker镜像加速地址:https://cr.console.aliyun.com/#/accelerator docker 安装: docker build -t soar/centos:7.1 . 通过当前目录下的Dockerfile创建一个名为soar/centos:7.1的镜像 do
阅读全文
摘要:maven 安装本地jar包,通过install插件的install-file mojo进行工作,具体可通过如下命令进行查看 下面是一个实例: mvn install:install-file -Dfile=X:/core-3.3.1-SNAPSHOT.jar -DgroupId=com.googl
阅读全文
摘要:快照原理,将当前虚拟机的虚拟硬盘文件锁定,不再更改,之后新建一个文件,之后所有更改都放到新建的文件中,读取时,优先读取这个中的,没有的话在读取锁定中的数据。所以快照占的空间取决于你做了多少更改
阅读全文