Illegal reflective access by ...

Java 9 以后由于新增了一些安全策略,造成一些框架(比如 Spring Boot)在运行时会弹出警告,一般以 Illegal reflective access by 开头。 解决方案 VM Options 里添加以下参数即可: 1 --add-opens java.base/java.lang=ALL-UNNAMED...

January 22, 2019 · 1 分钟 · hguandl

Nginx 开启目录索引

Ref http://www.zrblog.net/16596.html 1 2 3 4 5 location / { autoindex on; autoindex_exact_size on; autoindex_localtime on; }...

November 5, 2017 · 1 分钟 · hguandl

macOS 关闭 SMB 签名以加快传输速度

Ref http://bbs.feng.com/read-htm-tid-10541151.html 1 2 3 $ sudo echo "[default]" > /etc/nsmb.conf $ sudo echo signing_required=no >> /etc/nsmb.conf $ sudo reboot...

November 5, 2017 · 1 分钟 · hguandl

Time Machine 本地快照管理

Ref https://www.v2ex.com/t/403350#reply9 查看系统盘的快照 1 $ tmutil listlocalsnapshots / 删除某一快照 1 $ tmutil deletelocalsnapshots yyyy-MM-dd-hhmmss 缩减快照容量 1 $ sudo tmutil thinLocalSnapshots / 10000000000 4...

November 5, 2017 · 1 分钟 · hguandl

Alfred 签名问题导致请求通讯录及无通知推送

Ref http://cn.v2ex.com/t/104503 https://apple.stackexchange.com/questions/117777/alfred-keeps-asking-for-contacts-permission/212352#212352?newreg=fc1df937386e4fae849a66c7b71b2da9 1 $ sudo codesign -f -d -s - /Applications/Alfred\ 3.app/Contents/Frameworks/Alfred\ Framework.framework/Versions/A/Alfred\ Framework...

November 5, 2017 · 1 分钟 · hguandl