JSONベースでの認証APIを作成 以下のクラスを継承した UsernamePasswordAuthenticationFilter AuthenticationProvider UserDetails 要らないかも curlコマンドの操作 JSONをPOSTする curl -H "Content-Type: application/json" -d "{\"username\" : \"user2\" , \"password\" : \"sato@example.com\"}" localhost:8080/api/login -v