You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// bug1,不能被spring ioc创建该bean @slf4j
public class RedisServiceImpl implements RedisService {
// bug2,初始化该字段实例失败 @Autowired
private RedisTemplate<String, Object> redisTemplate;
Expected Behavior
// fix1 @service @slf4j
public class RedisServiceImpl implements RedisService {
// fix2 @resource
private RedisTemplate<String, Object> redisTemplate;
Steps To Reproduce
No response
Compass Log
log1:
Description:
Field taskSyncerMetaService in com.oppo.cloud.flink.detect.TaskDetectScheduler required a bean of type 'com.oppo.cloud.common.service.impl.RedisServiceImpl' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.oppo.cloud.common.service.impl.RedisServiceImpl' in your configuration.
log2:
No qualifying bean of type 'org.springframework.data.redis.core.RedisTemplate<java.lang.String, java.lang.Object>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Anything else? (Additional Context)
No response
The text was updated successfully, but these errors were encountered:
Contact Details
No response
Is there an existing issue for this?
Priority
low (Default)
Current Behavior
// bug1,不能被spring ioc创建该bean
@slf4j
public class RedisServiceImpl implements RedisService {
// bug2,初始化该字段实例失败
@Autowired
private RedisTemplate<String, Object> redisTemplate;
Expected Behavior
// fix1
@service
@slf4j
public class RedisServiceImpl implements RedisService {
// fix2
@resource
private RedisTemplate<String, Object> redisTemplate;
Steps To Reproduce
No response
Compass Log
log1:
Description:
Field taskSyncerMetaService in com.oppo.cloud.flink.detect.TaskDetectScheduler required a bean of type 'com.oppo.cloud.common.service.impl.RedisServiceImpl' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.oppo.cloud.common.service.impl.RedisServiceImpl' in your configuration.
log2:
No qualifying bean of type 'org.springframework.data.redis.core.RedisTemplate<java.lang.String, java.lang.Object>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Anything else? (Additional Context)
No response
The text was updated successfully, but these errors were encountered: