質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Q&A

0回答

1247閲覧

SpringBoot起動後のClosing Redis Connectionのループ

teruyu

総合スコア1

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

0グッド

0クリップ

投稿2022/06/19 11:24

SpringBootでテスト用のダミーログインをしようとしています。
実行したところ起動はしてログインページは開くことができたものの、下記のエラー文が繰り返されている状態です。(画面としてはログイン画面から直接URLを指定してもリダイレクトしてログイン画面から動けない)

Closing Redis Connectionということですが、原因がどこにあるのかわからないというよりどこを見たらいいのかわからないという状態ですので、考えられる原因や確認するべき箇所を教えていただきたいです。お願いいたします。

2022/06/19 18:34:00.014 [DEBUG] [userId=][X-Track=] Fetching Redis Connection from RedisConnectionFactory 2022/06/19 18:34:00.015 [DEBUG] [userId=][X-Track=] dispatching command AsyncCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2022/06/19 18:34:00.015 [DEBUG] [userId=][X-Track=] [channel=0x553ac94e, /127.0.0.1:50338 -> localhost/127.0.0.1:6379, epid=0x1] write() writeAndFlush command AsyncCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2022/06/19 18:34:00.015 [DEBUG] [userId=][X-Track=] [channel=0x553ac94e, /127.0.0.1:50338 -> localhost/127.0.0.1:6379, epid=0x1] write() done 2022/06/19 18:34:00.015 [DEBUG] [userId=][X-Track=] [channel=0x553ac94e, /127.0.0.1:50338 -> localhost/127.0.0.1:6379, chid=0x1] write(ctx, AsyncCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command], promise) 2022/06/19 18:34:00.016 [DEBUG] [userId=][X-Track=] [channel=0x553ac94e, /127.0.0.1:50338 -> localhost/127.0.0.1:6379] writing command AsyncCommand [type=DEL, output=IntegerOutput [output=null, error='null'], commandType=io.lettuce.core.protocol.Command] 2022/06/19 18:34:00.017 [DEBUG] [userId=][X-Track=] [channel=0x553ac94e, /127.0.0.1:50338 -> localhost/127.0.0.1:6379, chid=0x1] Received: 4 bytes, 1 commands in the stack 2022/06/19 18:34:00.018 [DEBUG] [userId=][X-Track=] [channel=0x553ac94e, /127.0.0.1:50338 -> localhost/127.0.0.1:6379, chid=0x1] Stack contains: 1 commands 2022/06/19 18:34:00.018 [DEBUG] [userId=][X-Track=] Decode done, empty stack: true 2022/06/19 18:34:00.019 [DEBUG] [userId=][X-Track=] [channel=0x553ac94e, /127.0.0.1:50338 -> localhost/127.0.0.1:6379, chid=0x1] Completing command LatencyMeteredCommand [type=DEL, outpClosing Redis Connectionut=IntegerOutput [output=0, error='null'], commandType=io.lettuce.core.protocol.AsyncCommand] 2022/06/19 18:34:00.019 [DEBUG] [userId=][X-Track=] . 2022/06/19 18:34:05.353 [DEBUG] [userId=][X-Track=] Closing connections idle longer than 60000 MILLISECONDS 2022/06/19 18:34:05.355 [DEBUG] [userId=][X-Track=] Closing connections idle longer than 60000 MILLISECONDS

application-local.yml

spring: datasource: # DB Settings (MyBatis) read: # Read DB url: jdbc:mysql://localhost:3306/test username: root password: Zaq12wsx1234 driverClassName: com.mysql.cj.jdbc.Driver write: # Write DB url: jdbc:mysql://localhost:3306/test username: root password: Zaq12wsx1234 driverClassName: com.mysql.cj.jdbc.Driver name: test redis: host: localhost port: 6379 password: test database: 0 mail: host: xxxxx.us-east-1.amazonaws.com username: smtp-username psssword: smtp-password properties: transport: protocol: smtp auth: true starttls: enable: true required: true #---------------------------------------------------------------------- cloud: aws: credentials: accessKey: AKIAZSHE6VOB7PBKTWGC secretKey: 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 stack: auto: false region: auto: false static: ap-northeast-1 uiContainer: host: "localhost:8080" tables: test,t_member microservice: name: microservice-test os: Win # Win or Linux management: host: localhost:8080 transaction: start: /tran/start commit: /tran/commit rollback: /tran/rollback batch: start: /batch/start master: fetch: /master/fetch callback: host: member_management: localhost:8080 carshare_service: localhost:8080 bill_mamagement: localhost:8080 owner_management: localhost:8080 fee_management: localhost:8080 station_management: localhost:8080 car_management: localhost:8080 system_management: localhost:8080 transaction: commit: /commit rolback: /rollback # Test User # id: TT000001 # pw: test admin: pages: url: localhost:8080/

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問