Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: task-common RedisServiceImpl got some bug #208

Open
1 task done
y1q84 opened this issue Jan 21, 2024 · 0 comments
Open
1 task done

[Bug]: task-common RedisServiceImpl got some bug #208

y1q84 opened this issue Jan 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@y1q84
Copy link

y1q84 commented Jan 21, 2024

Contact Details

No response

Is there an existing issue for this?

  • I have searched all the existing issues

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

@y1q84 y1q84 added the bug Something isn't working label Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants