原创 刷新DNS

Tiger或更低版本 Mac OS: sudo lookupd -flushcache Leopard和Snow Leopard: sudo dscacheutil -flushcache 而到了Lion

原创 【UEditor】百度UE富文本自定義按鈕添加文本

1、UE有一個可以自定義工具欄的,可以通過execCommand來操作,官方github上做一個列子 2、沒有添加純文本的只有添加html,查看源碼發現可以添加一個參數notNeedFilter來操作 execCommand("inser

原创 關於git的ssh-key:解決本地多個ssh-key的問題

本地配置了兩個ssh-key,一個用來連接公司server,一個用來連接github,分別用的不同的用戶名和郵箱地址,默認的配置情況下肯定會出現permission denied的錯誤,如何解決這個衝突呢? #爲github配置新的

原创 maven安裝本地jar到倉庫

命令如下 mvn install:install-file -Dfile=/Users/1111/ant-ice-4.0.0.jar -DgroupId=com.zeroc -DartifactId=ant-ice -Dversion=

原创 解決同域Nginx ajax 請求跨域的問題

在nginx.conf的根server  location上添加如下配置 location / { if ($request_method = 'OPTIONS') { add_header 'Access-Contro

原创 【Python】 Missing parentheses in call to 'print'

問題  print "www.baidu.com" 出現 SyntaxError: Missing parentheses in call to 'print' 原因:Mac安裝倆個python版本,2和3,python2系列可以支持

原创 Spring MVC 入參支持數組

1、入參實體 @XmlRootElement(name = "appPushMsgBean") public class AppPushMsgBean { private Long[] dictClassIds; /**