JUnit
Eclipseのプラグイン「Quick JUnit」でCtrl+Shift+0
が効かない問題
デバッグ実行用のショートカット。 Windowsでは他の機能が割り当てらているため、ショートカットが効かない。
- Windows 7でQuickJUnitのデバッグのショートカットが効かない問題への対処 - @yanaginの日記
- Windows 10 で言語切り替えショートカットを無効にする方法 - Qiita
- https://support.microsoft.com/ja-jp/help/967893/input-method-editor-keyboard-shortcut-ctrl-shift-0-switches-the-input
Spring Boot
spring-boot-mybatisでSQLをログに出力する方法
自分が作成したMapperのログレベルを"DEBUG"にすれば、実行したSQLがログに出力される。
logging.level.com.example.demo2=DEBUG
2018-01-27 21:36:07.332 DEBUG 8392 --- [ main] c.e.d.m.m.HotelMapper.findHotelById : ==> Preparing: select * from hotel where city = ? 2018-01-27 21:36:07.355 DEBUG 8392 --- [ main] c.e.d.m.m.HotelMapper.findHotelById : ==> Parameters: 1(Long) 2018-01-27 21:36:07.379 DEBUG 8392 --- [ main] c.e.d.m.m.HotelMapper.findHotelById : <== Total: 1 1,Conrad Treasury Place,William & George Streets,4001
Julia
- ブロックは
End
で終わる。Rubyから採用。