over 9 years ago
over 9 years ago
Command | Description |
---|---|
init 0 | shutdown system |
logout | leaving session |
reboot | reboot |
shutdown -h now | shutdown system |
shutdown -h 16:30 & | planned shutdown of the system |
shutdown -c | cancel a planned shutdown of the system |
shutdown -r now | reboot |
telinit 0 | shutdown system |
halt | For shutdown system |
over 9 years ago
在結合Spring跟jackson之後,幾乎所有的物件幾乎都可以自動幫你變成json資料格式輸出,
雖然有@JsonIgnore可以註解掉某些不想輸出的欄位,但有的時候需要有的時候不需要的話就要靠自訂過濾器來輔助了
over 9 years ago
除錯時常要確認執行到那裡有沒有進到某個方法的時候,我是這樣紀錄
log.debug(this.getClass().getSimpleName()+"."+Thread.currentThread().getStackTrace()[1].getMethodName());
這樣可以偷懶不用一直改log的內容,就可以知道現在在哪個Class跟Method