【Java】Spring SecurityのCORS設定で許可するオリジンを環境変数から読み込む
![Thumbnail of post image 136](https://sebenkyo.com/wp/wp-content/uploads/2020/02/programming1-150x150.jpg)
以下の記事で作成したSpring SecurityのCORS設定に対して、アクセスを許可するオリジンを環境変数から読み込む処理を追加します。
【Java】Spring Secu ...CORSアクセスの検証のためにaxiosでリクエストを送信する
![Thumbnail of post image 001](https://sebenkyo.com/wp/wp-content/uploads/2020/02/programming1-150x150.jpg)
APIの動作検証のためにaxiosを使ってリクエストを送信する簡易ページを作成します。わざわざaxiosでリクエストを送信する理由はCORSアクセスの動作検証を行うためです ...
【Java】Spring SecurityにCORS設定を追加する
![Thumbnail of post image 103](https://sebenkyo.com/wp/wp-content/uploads/2020/02/programming1-150x150.jpg)
以下の記事で作成したSpring Securityを使用しWeb APIのリクエストごとにトークンで認証する処理にCORS設定を追加します。
【Spring】Spring Sec ...【AWS】Cognito User Poolに対してカスタム認証とユーザ名パスワード認証を有効にする
![Thumbnail of post image 185](https://sebenkyo.com/wp/wp-content/uploads/2020/02/database1-150x150.jpg)
ユーザプールの設定でアプリクライアント→詳細を表示と進みます。
アプリクライアントの設定下図のように「Lambdaトリガーベースのカ ...
【要約まとめ】システムエンジニアにもおすすめ!『転職の思考法』
![Thumbnail of post image 112](https://sebenkyo.com/wp/wp-content/uploads/2020/03/s-o-c-i-a-l-c-u-t-GoFeJMsxAVM-unsplash-150x150.jpg)
この本ではタイトル通り転職に対する思考法を学ぶことができます。本書は物語風に書かれており、30歳の営業職の青年が転職について悩んでいるときにコンサルタントと出会い転職の思考法のレッスンを受けるというストーリとなって ...
【Java】HmacUtilsを使ってHMACメッセージダイジェストを生成する
![Thumbnail of post image 025](https://sebenkyo.com/wp/wp-content/uploads/2020/02/programming1-150x150.jpg)
Apache Commons Codecで提供されているHmacUtilsクラスを利用することでメッセージダイジェストを簡単に生成することができます。
公式 ...
【Java】How to generate a static factory method with @AllArgsConstructor of Lombok
![Thumbnail of post image 078](https://sebenkyo.com/wp/wp-content/uploads/2020/02/programming1-150x150.jpg)
@AllArgsConstructor generates an all-args constructor for ...
(PostgreSQL) How to connect a DB with a connection URI with psql
![Thumbnail of post image 106](https://sebenkyo.com/wp/wp-content/uploads/2020/02/database1-150x150.jpg)
I presume that you use psql as below when you connect to a DB.
psql -h {host name} -p {port} -U {user name} -d {da ...【PostgreSQL】psqlでURLを指定してDBへ接続する
![Thumbnail of post image 075](https://sebenkyo.com/wp/wp-content/uploads/2020/02/database1-150x150.jpg)
psqlを使用してDBへ接続する際は下記のように接続することが多いと思いと思います。
psql -h ホスト名 -p ポート番号 -U ユーザ名 -d データベース名この ...
【AWS】LambdaからRDS Proxy経由でPostgreSQLへ接続する
![Thumbnail of post image 185](https://sebenkyo.com/wp/wp-content/uploads/2020/02/database1-150x150.jpg)
この記事ではLambdaからRDS Proxy経由でRDS PostgreSQLへ接続する方法際の設定方法について書いています。
RDSの設定インスタン ...