Easter79 Easter79
3年前
synchronized 的实现原理
!(http://www.liebrother.com/upload/ef1e31512ff14b5da181fc36f9190e16_20171113.jpg)加不加synchronized有什么区别?(https://my.oschina.net/liebrother/blog/4253687)synchronized作为悲观锁,
LinMeng LinMeng
4年前
vue的watch监听
vue的watch监听函数watch用来响应数据的变化,watch的用法大致有以下三种:1.监听某个变量watch:{name(newName,oldName){console.log(newName)//改变前的值console.log(oldName)//改变后的值
Stella981 Stella981
3年前
Angular单元测试的spyOn使用一例
待测试的Component里有一个Observable数组:!(https://oscimg.oschina.net/oscnet/up61a1b192b6e91b74f749958443bfb1e8.png)通过下面的代码赋值:this.checkoutDeliveryService.getSupportedDeliveryMod
Stella981 Stella981
3年前
CentOS7 linux下yum安装redis以及使用
yum安装redis以及使用准备工作:cd/opt下,sudomkdirmyredis,这个只是为了备份,万一改错了,就的重来,就很烦1.检查是否有redisyum源  whereisredis也成    sudoyuminstallredis2.下载fedora的epel仓库
Easter79 Easter79
3年前
Spring中Resource(资源)的获取
1.通过Resource接口获取资源Resource接口的实现类有:!(https://oscimg.oschina.net/oscnet/0cc3fc90abb031f2f5a2202ceee4bafac62.png) Resource接口继承了InputStreamSource接口,Input
Easter79 Easter79
3年前
StackExchange.Redis 官方文档(二) Configuration
原文:StackExchange.Redis官方文档(二)Configuration(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2FArvinZhao%2Fp%2F6007043.html)配置有多种方式可以配置redis,Sta
Stella981 Stella981
3年前
Rails + Bootstrap个人博客搭建的完整过程(1)
Part1-首先最基本的,创建一个新的的project:railsnewblog-然后修改source为https://ruby.taobao.com,加入bootstrap的gem到Gemfile:gem'twitterbootstraprails'执行bundleinstall没有错误,但是有一个
Wesley13 Wesley13
3年前
mysql_系统数据库认识
showdatabases;查看mysql自带数据库有information_schema,mysql,performance_schema,test!(https://oscimg.oschina.net/oscnet/d84bda12480eb08b6c4819249d1af01e8b0.png)information_
Stella981 Stella981
3年前
Jenkins Jenkinx
Jenkins远程调用Java实现方式有两种,一种是RESTAPI,一种是使用jenkinsclient参考链接:https://www.cnblogs.com/zjsupermanblog/archive/2017/07/26/7238422.html(https://www.oschina.net/action/GoToLink?url
Stella981 Stella981
3年前
LVS(三)LVS集群NAT模式
LVS集群NAT模式一Director服务器环境1.查看Director服务器内核中是否有IPVS的功能显示IPVS配置信息以及支持的调度算法grepi'vs'/boot/config3.10.0514.el7.x86_64...