toryConfigurationDelegate:[201] - Finished Spring Data repository scanning in 14 ms. Found 0 Redis repository interfaces. 2023-06-11 12:13:02.508 [WARN] org.mybatis.spring.mapper.ClassPathMapperScanner:[44] - Skipping MapperFactoryBean with name 'modelFormAssemblyMapper' and 'com.million.mes.basic.dbapi.common.mode
这段日志信息表明,在Spring Data的repository扫描过程中,没有找到任何Redis repository接口。另外,MyBatis的ClassPathMapperScanner跳过了名为'modelFormAssemblyMapper'的MapperFactoryBean,它位于'com.million.mes.basic.dbapi.common.mode'包中。
这些信息都是警告信息,通常不会影响应用程序的正常运行。但是,如果你希望使用Redis repository或者MapperFactoryBean,请确保你在代码和配置中正确地定义了它们。如果你有其他问题或疑问,请让我知道。
Finished Spring Data repository scanning in 191 ms. Found 0 Redis repository interfaces
This message typically appears when using Spring Data Redis and no Redis repositories have been defined in the application. Spring Data Redis provides support for Redis repositories, which are interfaces that define methods for performing CRUD operations on Redis keys and their values.
To define a Redis repository interface, you can create a new interface that extends the org.springframework.data.keyvalue.repository.KeyValueRepository
interface, and provide the type of the key and value as generic parameters. For example:
public interface MyRedisRepository extends KeyValueRepository<MyEntity, String> {
// custom methods can be defined here
}
In the above example, MyEntity
is the type of the value stored in Redis, and String
is the type of the key.
Once you have defined a Redis repository interface, you can use it in your application by autowiring it into a service or controller:
@Service
public class MyService {
@Autowired
private MyRedisRepository myRedisRepository;
// ...
}
This will allow you to use the methods defined in the repository to interact with Redis data.
相关推荐

















