Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Multi-store support reports `Could not safely identify store assignment`

オープン
#3,179 コメント 3 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 17 日以内に返信

@mp911de がすでに取り組んでいます。

2025年9月23日 から。

評価

この issue はまだ評価されていません。

説明

type: enhancement
2024-10-15T19:40:08.435+09:00  INFO 11388 --- [  restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.avengers.yoribogo.recipe.repository.RecommendedMenuRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository

Spring Data JPA - Could not safely identify store assignment for repository candidate interface com.avengers.yoribogo.notification.weeklypopularrecipe.repository.WeeklyPopularRecipeMongoRepository; If you want this repository to be a JPA repository, consider annotating your entities with one of these annotations: jakarta.persistence.Entity, jakarta.persistence.MappedSuperclass (preferred), or consider extending one of the following types with your repository: org.springframework.data.jpa.repository.JpaRepository

Spring Data MongoDB - Could not safely identify store assignment for repository candidate interface com.avengers.yoribogo.recipe.repository.RecommendedMenuRepository; If you want this repository to be a MongoDB repository, consider annotating your entities with one of these annotations: org.springframework.data.mongodb.core.mapping.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.mongodb.repository.MongoRepository

There was a problem with the method I created to test the like function.
This error is a warning message that did not occur before adding the Insert feature for Mongodb to one transaction.
In addition, the functional test also passed as postman.
However, after creating an event processing feature to insert data into Mongodb, such a warning statement occurs.
Even though there is a warning, the api still works fine.
But I don't think that problem has been fundamentally solved.
Entities and Document Annotations are appropriately specified in the class
I don't think this is enough.
Please let me know the cause and solution of this problem

below : my Project File
yoribogo.zip

主要言語
Java
スター
840
フォーク
732
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

spring-projects/spring-data-commons のほかの issue

spring-projects/spring-data-commons の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。